Skip to content

fix: Allow passing data with files in multipart. (Fixes #351) #355

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

Merged
merged 3 commits into from
Mar 22, 2021

Conversation

dbanty
Copy link
Collaborator

@dbanty dbanty commented Mar 20, 2021

Aside from the bug fix, this also only allows one body type to be based to httpx which I think had to be the case anyway and would have broken things otherwise. We probably need to shore up the logic around bodies overall in the future and provide some warnings in the parser when multiple types are provided.

@codecov
Copy link

codecov bot commented Mar 20, 2021

Codecov Report

Merging #355 (5860e33) into main (045089c) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #355   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           47        47           
  Lines         1420      1420           
=========================================
  Hits          1420      1420           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 045089c...5860e33. Read the comment docs.

@dbanty dbanty requested a review from emann March 20, 2021 18:35
@dbanty dbanty enabled auto-merge (squash) March 22, 2021 20:18
@dbanty dbanty merged commit 72cb706 into main Mar 22, 2021
@dbanty dbanty deleted the 351-support-non-file-fields-in-multipart-requests branch March 22, 2021 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants