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 80d3513 commit 3ca3d69Copy full SHA for 3ca3d69
src/templates/core/nextjs_fetch/getHeaders.hbs
@@ -24,7 +24,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
24
headers['Authorization'] = `Basic ${credentials}`;
25
}
26
27
- if (options.body) {
+ if (options.body !== undefined) {
28
if (options.mediaType) {
29
headers['Content-Type'] = options.mediaType;
30
} else if (isBlob(options.body)) {
0 commit comments