diff --git a/lib/api.mjs b/lib/api.mjs index 75483bf..ae0d980 100644 --- a/lib/api.mjs +++ b/lib/api.mjs @@ -137,8 +137,9 @@ class API extends EventEmitter { pull (sn, retryno = 0) { const controller = new AbortController() + const ssl = API.handleForceHttps() ? 1 : 0 this.sn = controller - this.fetch(`${this.gateway}sc?${new URLSearchParams({ sn, sid: this.sid })}`, { + this.fetch(`${this.gateway}sc?${new URLSearchParams({ sn, ssl, sid: this.sid })}`, { method: 'POST', signal: controller.signal }).then(handleApiResponse).then(resp => {