Skip to content

ccproxy.api.middleware.normalize_headers

ccproxy.api.middleware.normalize_headers

NormalizeHeadersMiddleware

NormalizeHeadersMiddleware(app)

Middleware to normalize outgoing response headers.

  • Strips unsafe/mismatched headers (Content-Length, Transfer-Encoding)
Source code in ccproxy/api/middleware/normalize_headers.py
def __init__(self, app: ASGIApp) -> None:
    self.app = app