fix(server): strip hop-by-hop proxy response headers (#813)

* fix(server): strip hop-by-hop proxy response headers

* chore(ui): remove unused markdown runtime destructures
This commit is contained in:
shekohex
2026-04-01 16:19:20 +03:00
committed by GitHub
parent 1af2b9468f
commit 7b0e279a30
2 changed files with 14 additions and 0 deletions
@@ -23,6 +23,11 @@ describe('OpenCode proxy header handling', () => {
expect(shouldForwardProxyResponseHeader('Content-Encoding')).toBe(false);
});
it('drops transfer-encoding from forwarded response headers', () => {
expect(shouldForwardProxyResponseHeader('transfer-encoding')).toBe(false);
expect(shouldForwardProxyResponseHeader('Transfer-Encoding')).toBe(false);
});
it('still keeps ordinary response headers', () => {
expect(shouldForwardProxyResponseHeader('content-type')).toBe(true);
expect(shouldForwardProxyResponseHeader('etag')).toBe(true);