Skip to content

Commit

Permalink
Update aiohttp/http_writer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Sep 4, 2021
1 parent ce3dc76 commit 66ec8d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiohttp/http_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ async def drain(self) -> None:
def _safe_header(string: str) -> str:
if "\r" in string or "\n" in string:
raise ValueError(
"Newline or carriage return character detected in HTTP status message or "
"header. This is a potential security issue."
"Newline or carriage return detected in headers. "
"Potential header injection attack."
)
return string

Expand Down

0 comments on commit 66ec8d5

Please sign in to comment.