mirror of https://gitlab.com/bashrc2/epicyon
Encode the boundary
parent
3bd0646c6c
commit
f1ca34bac8
|
@ -405,7 +405,7 @@ def extractMediaInFormPOST(postBytes,boundary,name: str):
|
|||
mediaBytes=postBytes[imageStartLocation:]
|
||||
|
||||
# look for the next boundary
|
||||
imageEndBoundary=boundary
|
||||
imageEndBoundary=boundary.encode('utf8', 'ignore')
|
||||
imageEndLocation=mediaBytes.find(imageEndBoundary)
|
||||
if imageEndLocation==-1:
|
||||
# no ending boundary
|
||||
|
|
Loading…
Reference in New Issue