Skip to content

Commit

Permalink
fix benchmark script
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantgoel committed Jul 31, 2017
1 parent 5175bdc commit ea1c8fb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions utils/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from requests_toolbelt import MultipartEncoder
from streaming_form_data.parser import StreamingFormDataParser
from streaming_form_data.part import Part
from streaming_form_data.targets import ValueTarget


Expand Down Expand Up @@ -77,11 +76,10 @@ def main():
'file': ('file', fd, args.content_type)
})

expected_parts = (Part('file', ValueTarget()),)

parser = StreamingFormDataParser(
expected_parts=expected_parts,
headers={'Content-Type': encoder.content_type})
parser.register('file', ValueTarget())

parser.data_received(encoder.to_string())


Expand Down

0 comments on commit ea1c8fb

Please sign in to comment.