Skip to content

Commit e93729b

Browse files
Split request line on \r rather than \n.
Co-authored-by: Dan Halbert <[email protected]>
1 parent bfbcf1c commit e93729b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_httpserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(
6868
else:
6969
# Parse request data from raw request
7070
request_text = raw_request.decode("utf8")
71-
first_line = request_text[: request_text.find("\n")]
71+
first_line = request_text[: request_text.find("\r")]
7272
try:
7373
(self.method, self.path, _httpversion) = first_line.split()
7474
except ValueError as exc:

0 commit comments

Comments
 (0)