mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
OpenAPI: include content encoding into proxied response
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-openapi': patch
|
||||
---
|
||||
|
||||
include content encoding into proxied response
|
||||
@@ -119,7 +119,8 @@ export function createProxy(options: CreateProxyOptions = {}): Proxy {
|
||||
const headers = new Headers(res.headers);
|
||||
headers.forEach((_value, originalKey) => {
|
||||
const key = originalKey.toLowerCase();
|
||||
if (key.startsWith('access-control-') || key === 'content-encoding') {
|
||||
|
||||
if (key.startsWith('access-control-')) {
|
||||
headers.delete(originalKey);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user