wkh237 / react-native-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.61k stars 1.6k forks source link

iOS PATCH method removes body #306

Closed atlanteh closed 7 years ago

atlanteh commented 7 years ago

I'm using fetch-blob "fetch" polyfill. When executing the following code in iOS, my server receives empty req.body:

fetch('http://myServer.com/test', {method: 'PATCH', body: {test: 1234}});

when I use POST, it's working fine.

versions react-native: 0.42.3 react-native-fetch-blob: 0.10.4

atlanteh commented 7 years ago

false alarm. it was react-native-debugger.

jhen0409 commented 7 years ago

https://github.com/jhen0409/react-native-debugger/issues/60 I confirmed it not related to debug mode, should reopen this?

atlanteh commented 7 years ago

I'm opening. Thx!

wkh237 commented 7 years ago

The PR already merged 👍 you can now install the package from branch issue-306.