mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
OpenAPI: fix proxy clone request
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-openapi': patch
|
||||
---
|
||||
|
||||
fix proxy clone request
|
||||
@@ -79,9 +79,10 @@ export function createProxy(options: CreateProxyOptions = {}): Proxy {
|
||||
}
|
||||
|
||||
let proxied = new Request(parsedUrl, {
|
||||
...req,
|
||||
method: req.method,
|
||||
cache: 'no-cache',
|
||||
mode: 'cors',
|
||||
headers: req.headers,
|
||||
body: await req.arrayBuffer(),
|
||||
});
|
||||
|
||||
if (overrides?.request) {
|
||||
|
||||
Reference in New Issue
Block a user