mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
OpenAPI: Remove explicit form data Content-Type
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-openapi': patch
|
||||
---
|
||||
|
||||
Remove explicit form data `Content-Type`
|
||||
@@ -26,7 +26,10 @@ export function createBrowserFetcher(
|
||||
return {
|
||||
async fetch(url, options) {
|
||||
const headers = new Headers();
|
||||
if (options.bodyMediaType)
|
||||
if (
|
||||
options.bodyMediaType &&
|
||||
options.bodyMediaType !== 'multipart/form-data'
|
||||
)
|
||||
headers.append('Content-Type', options.bodyMediaType);
|
||||
|
||||
for (const key in options.header) {
|
||||
|
||||
Reference in New Issue
Block a user