Skip to content

Commit

Permalink
Fix missing space in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
msea1 committed Nov 16, 2023
1 parent 839a8ed commit c32b046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/requests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ def _validate_header_part(header, header_part, header_validator_index):
if not validator.match(header_part):
header_kind = "name" if header_validator_index == 0 else "value"
raise InvalidHeader(
f"Invalid leading whitespace, reserved character(s), or return"
f"Invalid leading whitespace, reserved character(s), or return "
f"character(s) in header {header_kind}: {header_part!r}"
)

Expand Down

0 comments on commit c32b046

Please sign in to comment.