Classification: Bug (Sentry-reported) Severity: Medium Effort: Small (fix already exists)
The proxy endpoint's _filter_response_headers() in lib/galaxy/webapps/galaxy/api/proxy.py only strips content-length when upstream used content-encoding (compression). But the stream can also be truncated by MAX_STREAM_BYTES (1 MB) or MAX_STREAM_SECONDS (10s) limits on uncompressed responses, causing a mismatch between the forwarded content-length and actual bytes sent. Uvicorn's h11 layer then raises LocalProtocolError.