Skip to content

Commit

Permalink
fix security error fix (#1399)
Browse files Browse the repository at this point in the history
  • Loading branch information
akihikokuroda authored Jul 3, 2024
1 parent c1e87a8 commit ff57279
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions proxy/proxy/wsgiproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ def handle_response(resp):
if header != "Transfer-Encoding": # chunked encoding is not supported
logging.debug("header: %s, %s", header, resp.headers[header])
headers.add(header, resp.headers[header])
if response and len(response) != 0:
sanitized = response.decode("utf-8").replace("\n", "").replace("\r", "")
logging.debug("Sending response content: %s", sanitized)
return Response(
response=response, headers=headers, status=status, direct_passthrough=True
)
Expand Down

0 comments on commit ff57279

Please sign in to comment.