nativescript-community/https

Cannot see request content properties

leocrawf opened this issue · 2 comments

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.

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

this solved the issue: #44