Comparing version 5.0.3 to 5.1.0
{ | ||
"name": "vksdk", | ||
"description": "SDK for API of vk.com", | ||
"version": "5.0.3", | ||
"version": "5.1.0", | ||
"homepage": "https://github.com/57uff3r/nodejs-vksdk", | ||
@@ -6,0 +6,0 @@ "email": "57uff3r@gmail.com", |
14
sdk.js
@@ -271,7 +271,12 @@ /** | ||
port: 443, | ||
path: '/method/' + _method + '?' + requestString | ||
path: '/method/' + _method , | ||
method: 'POST', | ||
headers: { | ||
'Content-Type': 'application/x-www-form-urlencoded', | ||
'Content-Length': requestString.length | ||
} | ||
}; | ||
https.get(options, function(res) { | ||
var apiResponse = new String(); | ||
var post_req = https.request(options, function(res) { | ||
var apiResponse = ""; | ||
res.setEncoding('utf8'); | ||
@@ -297,2 +302,5 @@ | ||
}); | ||
post_req.write(requestString); | ||
post_req.end(); | ||
}; | ||
@@ -299,0 +307,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21780
565