We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a075e0 commit f39cb7fCopy full SHA for f39cb7f
1 file changed
src/client.ts
@@ -757,6 +757,14 @@ export class CasParser {
757
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
758
) {
759
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
760
+ } else if (
761
+ typeof body === 'object' &&
762
+ headers.values.get('content-type') === 'application/x-www-form-urlencoded'
763
+ ) {
764
+ return {
765
+ bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
766
+ body: this.stringifyQuery(body as Record<string, unknown>),
767
+ };
768
} else {
769
return this.#encoder({ body, headers });
770
}
0 commit comments