Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

it turns out that the whitespace was not the problem; it was the lack…

… of a Content-Length header, which was fixed in the same commit.
  • Loading branch information...
commit 769fe9a6660f5c15b5c32f8c59f6e6f63c2736e3 1 parent 72f02c1
@mattbornski authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  winkapi.js
View
2  winkapi.js
@@ -240,7 +240,7 @@ WinkAPI.prototype.invoke = function(method, path, json, callback) {
}
if (!!json) {
options.headers['Content-Type'] = 'application/json';
- json = JSON.stringify(json).replace(/":/g, '": ').replace(/","/g, '", "');
+ json = JSON.stringify(json);
options.headers['Content-Length'] = Buffer.byteLength(json);
}
Please sign in to comment.
Something went wrong with that request. Please try again.