Use str
This commit is contained in:
parent
ff5dfc1489
commit
34c00895c6
@ -100,7 +100,7 @@ def get_body_from_form_data(
|
||||
data = part.data
|
||||
print("YO SETTING FILE")
|
||||
else:
|
||||
match = re.search(r'name="([^"]*)"', header.value)
|
||||
match = re.search(r'name="([^"]*)"', header.value.decode("utf-8"))
|
||||
if match:
|
||||
name = match.group(1)
|
||||
print("YO GOT NAME", name)
|
||||
|
Loading…
Reference in New Issue
Block a user