diff --git a/cdxj_indexer/postquery.py b/cdxj_indexer/postquery.py index 01edbf8..911313c 100644 --- a/cdxj_indexer/postquery.py +++ b/cdxj_indexer/postquery.py @@ -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)