final for Robin
This commit is contained in:
1 parent
e138ec8c2e
commit
9e06bd387a
6 files changed
+6
-10
No files matched your search
@@ -51,7 +51,8 @@ class HttpRequest:
|
||||
# Encode the values in the dictionary
|
||||
encoded_content = {}
|
||||
for key, value in parsed_content.items():
|
||||
encoded_value = re.sub(r'%([0-9A-Fa-f]{2})', lambda m: chr(int(m.group(1), 16)), value)
|
||||
encoded_value = re.sub(r'\%([0-9A-Fa-f]{2})', lambda m: chr(int(m.group(1), 16)), value)
|
||||
print("encoding ...", key, value, encoded_value)
|
||||
encoded_content[key] = encoded_value
|
||||
|
||||
return encoded_content
|
||||
|
||||
Reference in new issue
Block a user