mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 22:15:33 +00:00
fix(proxy): strip stale encoding from upstream error responses
This commit is contained in:
1 parent
ab096ac37e
commit
1932b2ca61
2 files changed
+32
No files matched your search
@@ -50,6 +50,7 @@ export function createAnthropicErrorResponse(
|
||||
): Response {
|
||||
const responseHeaders = new Headers(headers);
|
||||
responseHeaders.set('Content-Type', 'application/json');
|
||||
responseHeaders.delete('Content-Encoding');
|
||||
responseHeaders.delete('Content-Length');
|
||||
|
||||
return new Response(JSON.stringify(createAnthropicErrorPayload(type, message)), {
|
||||
|
||||
Reference in new issue
Block a user