matkapi / postpy2

Postman collection runner library for python
Other
35 stars 15 forks source link

File pointers are not reset for subsequent request calls [BUG] #6

Closed elsamuray7 closed 2 years ago

elsamuray7 commented 3 years ago

When sending the same request that includes a form data file multiple times, the file pointer points to the end of the file for all subsequent calls after the first call. Thus, the server side application receives an empty file for those calls.

Before every request call the file pointers of all files should be reset via file.seek(0). This sets the file pointers to point to the beginning and the server side applications won't receive empty files for subsequent calls anymore.

elsamuray7 commented 3 years ago

My pull request should have fixed the issue.