Skip to content

Commit

Permalink
Handle ssl parameter in API's pull method
Browse files Browse the repository at this point in the history
  • Loading branch information
qgustavor authored Sep 6, 2024
1 parent b1ed12d commit 5acf2aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/api.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 5acf2aa

Please sign in to comment.