nativescript-community / https

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

Cannot see request content properties #46

Closed leocrawf closed 4 years ago

leocrawf commented 4 years ago

Can someone explain why this piece of code stopped working when I use the latest version:

const http = require("nativescript-https");
http.disableSSLPinning();
http.request({
        url: `${config.apiURL}/circular/`,
        method: "POST",
        headers: { "Content-Type": "application/json" },
        content: JSON.stringify({
            schoolID:config.schoolID
        })
    })

in that I stopped seeing the schoolID on the server side but when I switched back to "nativescript-https": "^1.0.1" it worked as expected? The only difference is that one is the latest version while the other is version 1.0.1.

leocrawf commented 4 years ago

I am not seeing an error message on the client. On the server hoever, I see where the properties are not passed over.

leocrawf commented 4 years ago

this solved the issue: https://github.com/EddyVerbruggen/nativescript-https/issues/44