-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds upload_files functionality for request transport #244
Adds upload_files functionality for request transport #244
Conversation
I don't have access to a pc right now but you could add it to the |
Codecov Report
@@ Coverage Diff @@
## master #244 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 16 16
Lines 1214 1240 +26
=========================================
+ Hits 1214 1240 +26
Continue to review full report at Codecov.
|
@leszekhanusz Could you have a look and merge this PR if you're satisfied? :) |
For the coverage, you could refactor:
into:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Just please add a maximum version for the requests_toolbelt dependency.
Thanks, I'll merge this PR next week. |
Hi! I noticed something strange with this PR.. The content-type header gets set correctly to "multipart/form-data" when you do an upload mutation, but when you execute another mutation/query on the same client afterwards, this header is still present. Looking at the code, I fail to grasp how this can be the case as |
Indeed, |
Thank you for finding this! So, this is happening:
Writing a fix now. |
@leszekhanusz This PR requires a new package dependency:
requests_toolbelt
but I'm not sure where to include it. Could you add it for me? Thanks!