Files
open-webui/backend/open_webui
Classic298 44f9a4f7f9 fix: stop forwarding upstream Server and Date headers from the OpenAI and Ollama proxies (#29843)
Streamed chat completions and the other proxied OpenAI and Ollama responses
went out with two Server and two Date headers: the upstream's copies, forwarded
verbatim, plus uvicorn's own. nginx in front of Open WebUI logs "upstream sent
duplicate header line" for both on every streamed request.

Server and Date belong to whoever terminates the connection, so both proxies now
drop the upstream's copies next to the encoding headers they already stripped.
The filter also compares header names case-insensitively. Before, it matched
title-case names only, so uvicorn-based upstreams such as vLLM and LiteLLM,
which send lowercase header names, had none of their headers stripped at all,
including the Content-Encoding entry the filter exists for.

Same fix as #29824 for the terminal proxy, applied to the other two proxy paths.
2026-09-09 16:35:48 -04:00
..
2026-09-06 17:13:32 -04:00
2026-08-25 16:53:53 -04:00
2026-09-07 14:46:52 -04:00
2026-09-08 23:18:48 -04:00
2026-09-06 17:27:30 -04:00
2026-09-06 17:13:32 -04:00
2026-09-09 12:51:59 -04:00
2026-09-08 23:18:48 -04:00
2026-08-29 16:14:32 -04:00
2026-09-09 12:51:59 -04:00
2026-08-16 23:21:00 -07:00
2026-09-06 19:36:17 -04:00