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 ff66d6b commit 7b1800bCopy full SHA for 7b1800b
server/plugins/http-proxy.ts
@@ -111,8 +111,12 @@ function proxyPlugin(fastify) {
111
? req.encryptedSession.get('onboarding_accessToken')
112
: `${req.encryptedSession.get('onboarding_accessToken')},${req.encryptedSession.get('mcp_accessToken')}`;
113
114
+ // Remove accept-encoding to prevent backend from compressing
115
+ // This avoids double-compression or encoding issues
116
+ const { 'accept-encoding': _, ...restHeaders } = headers;
117
+
118
return {
- ...headers,
119
+ ...restHeaders,
120
authorization: accessToken,
121
};
122
},
0 commit comments