nativescript-community / https

Secure HTTP client with SSL pinning for Nativescript - iOS/Android
https://nativescript-community.github.io/https/
Other
50 stars 42 forks source link

iOS PUT not working #20

Open jschwartz73 opened 6 years ago

jschwartz73 commented 6 years ago

I'm having trouble getting an HTTPS PUT method to work. Currently, the app just sort of freezes when it gets to the PUT.

Debugging the library I found that the file node_modules/nativescript-https/https-ios.js at approximately line 70, has an if for GET and then an else if for POST, but nothing PUT or DELETE.

I thought this was a drop in replacement for the http module. Am I missing something?

I installed the plugin as follows: tns add plugin nativescript-https

Any suggestions would be greatly appreciated.

HenryDiesel commented 6 years ago

It seems that PUT is not supported, only POST and GET. But okhttp3 which is being used inside the module does support PUT. Linking the two seems like a major amount of work though.