Skip to content

Commit 030390a

Browse files
committed
Fix: Prevent creating empty query param
1 parent 78cfa0e commit 030390a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_httpserver/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def _parse_start_line(header_bytes: bytes) -> Tuple[str, str, Dict[str, str], st
133133
if "=" in query_param:
134134
key, value = query_param.split("=", 1)
135135
query_params[key] = value
136-
else:
136+
elif query_param:
137137
query_params[query_param] = ""
138138

139139
return method, path, query_params, http_version

0 commit comments

Comments
 (0)