We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc9d57d commit ef09701Copy full SHA for ef09701
1 file changed
src/client.ts
@@ -732,6 +732,14 @@ export class ScanDocuments {
732
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
733
) {
734
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
735
+ } else if (
736
+ typeof body === 'object' &&
737
+ headers.values.get('content-type') === 'application/x-www-form-urlencoded'
738
+ ) {
739
+ return {
740
+ bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
741
+ body: this.stringifyQuery(body as Record<string, unknown>),
742
+ };
743
} else {
744
return this.#encoder({ body, headers });
745
}
0 commit comments