We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1119a9 commit fb8db51Copy full SHA for fb8db51
src/https.android.ts
@@ -433,6 +433,12 @@ export function createRequest(opts: Https.HttpsRequestOptions): Https.HttpsReque
433
}
434
});
435
okHttpBody = builder.build();
436
+ } else if (type === 'application/x-www-form-urlencoded') {
437
+ const builder = new okhttp3.FormBody.Builder();
438
+ Object.keys(opts.body).forEach((key) => {
439
+ builder.add(key, opts.body[key]);
440
+ });
441
+ okHttpBody = builder.build();
442
} else {
443
let body;
444
if (opts.body) {
0 commit comments