Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

On Android 7.0, ";BASE64" is not stripped from the Content-Type in the final request #293

Closed
@mfwgenerics

Description

@mfwgenerics
RNFetchBlob.fetch(
   'PUT',
    uploadUrl,
    { 'Content-Type': 'image/jpeg;BASE64' },
    imageData
)

The point of the ;BASE64 suffix here is to set react-native-fetch-blob's decoding mode. It does not belong in the Content-Type of the final request. This causes issues with servers that whitelist Content-Type or treat ;BASE64 as a genuine Content-Type parameter.

Ideally there would be a way of setting the decoding mode that doesn't involve overloading the meaning of standard HTTP headers.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions