Skip to content

Commit

Permalink
fix gemini no-body POST requests
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorSlimm committed Mar 14, 2022
1 parent 4f9b91d commit 8812e40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/gemini.js
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,9 @@ module.exports = class gemini extends Exchange {
}
}
url = this.urls['api'][api] + url;
if ((method === 'POST') || (method === 'DELETE')) {
body = this.json (query);
}
return { 'url': url, 'method': method, 'body': body, 'headers': headers };
}

Expand Down

0 comments on commit 8812e40

Please sign in to comment.