We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 602ae0a commit 6f2394dCopy full SHA for 6f2394d
src/client.ts
@@ -845,6 +845,14 @@ export class Dedalus {
845
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
846
) {
847
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
848
+ } else if (
849
+ typeof body === 'object' &&
850
+ headers.values.get('content-type') === 'application/x-www-form-urlencoded'
851
+ ) {
852
+ return {
853
+ bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
854
+ body: this.stringifyQuery(body as Record<string, unknown>),
855
+ };
856
} else {
857
return this.#encoder({ body, headers });
858
}
0 commit comments