Skip to content

MultipartBody headers should allow non-ascii characters #4439

@sxci

Description

@sxci

here, https://github.com/square/okhttp/blob/parent-3.12.0/okhttp/src/main/java/okhttp3/MultipartBody.java#L259
for MultipartBody,like file upload, the filename may not be ascii ,but it is legal.

but Headers.of https://github.com/square/okhttp/blob/parent-3.12.0/okhttp/src/main/java/okhttp3/Headers.java#L224
use the 'checkValue(value, name)' , it is not allowed non-ascii char.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions