diff --git a/uvicorn/protocols/http/httptools_impl.py b/uvicorn/protocols/http/httptools_impl.py index 7a60733ce..ebff26ac8 100644 --- a/uvicorn/protocols/http/httptools_impl.py +++ b/uvicorn/protocols/http/httptools_impl.py @@ -443,6 +443,7 @@ async def send(self, message): status_code = message["status"] headers = self.default_headers + list(message.get("headers", [])) + self.scope["response_headers"] = headers if self.access_log: self.access_logger.info(