Skip to content

Commit b4bd746

Browse files
mdesmethashhar
authored andcommitted
Use unquote_plus for session properties url decoding
1 parent 9e76fb3 commit b4bd746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trino/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def get_header_values(headers, header):
224224
def get_session_property_values(headers, header):
225225
kvs = get_header_values(headers, header)
226226
return [
227-
(k.strip(), urllib.parse.unquote(v.strip()))
227+
(k.strip(), urllib.parse.unquote_plus(v.strip()))
228228
for k, v in (kv.split("=", 1) for kv in kvs)
229229
]
230230

0 commit comments

Comments
 (0)