final for Robin

This commit is contained in:
mis_mueller committed 2024-05-09 17:14:36 +02:00
1 parent e138ec8c2e
commit 9e06bd387a
6 files changed
+6 -10

No files matched your search

+2 -1
View File
@@ -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