Skip to content

Commit 46bf589

Browse files
fix(apiclient): add content-type header explicitely (sadly not auto-set by cross-fetch)
1 parent f02e534 commit 46bf589

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/apiclient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ export class APIClient {
336336
body: this.getPOSTData(mycmd),
337337
headers: {
338338
"User-Agent": this.getUserAgent(),
339+
"Content-Type": "application/x-www-form-urlencoded"
339340
},
340341
method: "POST",
341342
timeout: APIClient.socketTimeout,

0 commit comments

Comments
 (0)