open-webui/backend/open_webui/routers
Classic298 c955cbd2c5
fix: stop forwarding upstream Server and Date headers from the terminal proxy (#29841)
Proxied terminal responses (GET /api/v1/terminals/{id}/ports and every other
proxied route) went out with two Server and two Date headers: the terminal
server's copies, forwarded verbatim, plus uvicorn's own. nginx in front of Open
WebUI logs "upstream sent duplicate header line" for both on every request, and
the ports route is polled often enough to fill gigabytes of error log per day.

Server and Date belong to whoever terminates the connection, so the proxy now
drops the upstream's copies next to the framing headers it already stripped.
uvicorn's own values still go out, once. Everything else, including custom
upstream headers and TERMINAL_PROXY_HEADERS, passes through unchanged.

The OpenAI and Ollama proxies forward upstream Server and Date the same way and
are left for a separate change.

Fixes #29824
2026-09-09 12:31:02 -04:00
..
analytics.py refac 2026-06-29 01:38:41 -05:00
audio.py refac 2026-09-06 16:48:30 -04:00
auths.py refac 2026-09-06 17:10:01 -04:00
automations.py refac 2026-08-13 17:26:38 -06:00
calendar.py refac 2026-06-29 13:03:14 -05:00
channels.py Gate the channel webhook profile image endpoint on channel access (#29703) 2026-09-06 16:58:50 -04:00
chats.py refac 2026-08-25 13:18:38 -04:00
configs.py refac 2026-09-07 12:15:20 -04:00
evaluations.py refac 2026-09-06 16:48:30 -04:00
files.py fix: don't hold a database connection for the lifetime of an SSE stream (#28183) 2026-08-17 01:46:54 -06:00
folders.py fix: keep folder parent references acyclic (#28748) 2026-08-24 17:06:19 -04:00
functions.py refac 2026-08-17 01:21:58 -07:00
groups.py refac 2026-06-29 05:47:21 -05:00
images.py refac 2026-08-31 10:47:49 -04:00
knowledge.py refac 2026-08-31 00:39:16 -04:00
memories.py refac 2026-08-11 17:35:05 -06:00
models.py Gate the model profile image endpoint on model read access (#29700) 2026-09-06 16:20:13 -04:00
notes.py refac 2026-08-25 13:18:38 -04:00
notifications.py refac 2026-07-27 19:39:36 -04:00
ollama.py refac: move the connection index role check into the listing handlers (#29619) 2026-09-06 18:30:31 -04:00
openai.py refac 2026-09-07 12:21:23 -04:00
pipelines.py perf: skip pipeline filter session setup when no filters exist (#29146) 2026-08-28 12:22:23 -04:00
prompts.py refac 2026-08-31 00:39:16 -04:00
retrieval.py refac 2026-09-08 23:18:48 -04:00
scim.py refac 2026-08-23 13:49:50 -04:00
skills.py perf: stop scanning every skill on each listing and chat turn (#28798) 2026-08-19 11:07:33 -07:00
tasks.py refac 2026-08-11 01:15:05 -06:00
terminals.py fix: stop forwarding upstream Server and Date headers from the terminal proxy (#29841) 2026-09-09 12:31:02 -04:00
tools.py refactor: scope tool export to tools the caller can write (#29310) 2026-09-06 17:44:45 -04:00
users.py refac 2026-09-07 14:46:52 -04:00
utils.py refac 2026-09-06 17:27:30 -04:00