We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25002d6 commit fae488fCopy full SHA for fae488f
1 file changed
src/client.ts
@@ -746,6 +746,14 @@ export class Grid {
746
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
747
) {
748
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
749
+ } else if (
750
+ typeof body === 'object' &&
751
+ headers.values.get('content-type') === 'application/x-www-form-urlencoded'
752
+ ) {
753
+ return {
754
+ bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
755
+ body: this.stringifyQuery(body as Record<string, unknown>),
756
+ };
757
} else {
758
return this.#encoder({ body, headers });
759
}
0 commit comments