Skip to content

Multipart boundary is 71 bytes (RFC 2046 §5.1.1 recommends ≤ 70) #3031

@Kludex

Description

@Kludex

Hey 👋

I maintain python-multipart, a dependency of Starlette/FastAPI.

While working on Kludex/python-multipart#282, I've noticed that reqwest's gen_boundary emits a 71-byte boundary (4 × 16-hex chunks joined by -). RFC 2046 §5.1.1 recommends boundaries be at most 70 bytes, and reqwest is the only client I found that exceeds it.

It's not a big deal, I just wanted to share it here since it's the only client that I've found that doesn't follow the recommendation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions