https icon indicating copy to clipboard operation
https copied to clipboard

iOS PUT not working

Open jschwartz73 opened this issue 8 years ago • 1 comments

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.

jschwartz73 avatar Oct 25 '17 20:10 jschwartz73

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.

HenryDiesel avatar Jul 10 '18 10:07 HenryDiesel