Skip to content

Commit b370876

Browse files
authored
fix #218 (#219)
1 parent 464804e commit b370876

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/socketify/asgi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def ws_upgrade(ssl, response, info, socket_context, user_data):
107107
"root_path": "",
108108
"path": url.decode("utf8"),
109109
"raw_path": url,
110-
"query_string": ffi.unpack(info.query_string, info.query_string_size),
110+
"query_string": ffi.unpack(info.query_string, info.query_string_size)[1:],
111111
"headers": headers,
112112
"subprotocols": [protocol] if protocol else [],
113113
"extensions": {
@@ -471,7 +471,7 @@ def asgi(ssl, response, info, user_data):
471471
"root_path": "",
472472
"path": url.decode("utf8"),
473473
"raw_path": url,
474-
"query_string": ffi.unpack(info.query_string, info.query_string_size),
474+
"query_string": ffi.unpack(info.query_string, info.query_string_size)[1:],
475475
"headers": headers,
476476

477477
}

0 commit comments

Comments
 (0)