Skip to content

Commit

Permalink
type confusion in ParseException arg
Browse files Browse the repository at this point in the history
  • Loading branch information
pajod committed Apr 26, 2024
1 parent 5b68c17 commit f6bb775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunicorn/http/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def parse_request_line(self, line_bytes):
if not (1, 0) <= self.version < (2, 0):
# if ever relaxing this, carefully review Content-Encoding processing
if not self.cfg.permit_unconventional_http_version:
raise InvalidHTTPVersion(self.version)
raise InvalidHTTPVersion(bits[2])

def set_body_reader(self):
super().set_body_reader()
Expand Down

0 comments on commit f6bb775

Please sign in to comment.