Skip to content

Commit

Permalink
Try feeding in stream as BytesIO
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Nov 7, 2024
1 parent b738a65 commit db82044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdxj_indexer/postquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def handle_binary(query_data):

try:
boundary = mime.split("boundary=")[1]
parser = MultipartParser(stream, boundary, charset="utf8")
parser = MultipartParser(BytesIO(query_data), boundary, charset="utf8")
except (ValueError, IndexError):
# Content-Type multipart/form-data may lack "boundary" info
query = handle_binary(query_data)
Expand Down

0 comments on commit db82044

Please sign in to comment.