mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
Merge pull request '[bug] Preserve Accept-Encoding from original request if not explicitly provided; Fix bug 77551' (#80) from fix/bug-77551 into release/v9.1.0
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/server/pulls/80
This commit is contained in:
@ -227,6 +227,11 @@ async function proxyRequest(req, res) {
|
||||
// Merge key in headers
|
||||
const headers = {...body.headers, ...providerHeaders};
|
||||
|
||||
// Preserve Accept-Encoding from original request if not explicitly provided
|
||||
if (!headers['accept-encoding'] && req.headers['accept-encoding']) {
|
||||
headers['accept-encoding'] = req.headers['accept-encoding'];
|
||||
}
|
||||
|
||||
// use proxy instead of direct request
|
||||
if (tenAiApiProxy) {
|
||||
const tenTokenEnableOutbox = ctx.getCfg('services.CoAuthoring.token.enable.request.outbox', cfgTokenEnableOutbox);
|
||||
|
||||
Reference in New Issue
Block a user