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.
iOS POST method removes body #363
Open
Description
I'm using a fetch replacement:
const Fetch = RNFetchBlob.polyfill.Fetch
window.fetch = new Fetch({
auto : true,
binaryContentTypes : [
'text/xml; charset=utf-8',
'text/plain; charset=utf-8'
]
}).build();
and issuing the following request:
fetch(getURL(_hash), {
method: 'POST',
headers : {
'Content-Type' : 'application/x-www-form-urlencoded; charset=UTF-8;Base64'
},
body: RNFetchBlob.base64.encode(String.fromCharCode.apply(null, _encData))
})
Versions:
- react-native: 0.44.0
- react-native-fetch-blob: 0.10.5