diff --git a/lib/galaxy/web/framework/base.py b/lib/galaxy/web/framework/base.py index 364e6d4c72e2..276ac0b52d5d 100644 --- a/lib/galaxy/web/framework/base.py +++ b/lib/galaxy/web/framework/base.py @@ -264,6 +264,7 @@ def handle_request(self, request_id, path_info, environ, start_response, body_re except Exception as e: body = self.handle_controller_exception(e, trans, method, **kwargs) if not body: + trans.response.headers.pop("content-length", None) raise body_renderer = body_renderer or self._render_body return body_renderer(trans, body, environ, start_response)