Skip to content
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

Fix wrong key type in multipart decoder #353

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 25, 2023

  1. Fix wrong key type in multipart decoder

    The header is parsed into a CaseInsensitiveDict which keys are specified to be expected to be strings, but it was here set to bytes.
    https://github.com/psf/requests/blob/main/requests/structures.py#:~:text=All%20keys%20are%20expected%20to%20be%20strings.%20The%20structure%20remembers%20the
    
    This fix removes that encoding that converted the parsed key back to bytes.
    nollium committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    da0f9e9 View commit details
    Browse the repository at this point in the history