Skip to content
This repository has been archived by the owner on Feb 1, 2018. It is now read-only.

Commit

Permalink
add Content-Length header to the http headers, to try to solve 411 er…
Browse files Browse the repository at this point in the history
…rors
  • Loading branch information
ekilby committed Sep 6, 2013
1 parent 963fa02 commit a8cb207
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/stackdriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ StackdriverBackend.prototype.post_message_to_gateway = function(stackdriverMessa
headers : {
"Content-Type" : "application/json; charset=utf-8",
"x-stackdriver-apikey" : this.apiKey,
"User-Agent": "stackdriver-statsd-backend-0.0.1"
"Content-Length" : stackdriverMessage.length,
"User-Agent": "stackdriver-statsd-backend-0.1.2"
}
};

Expand Down

0 comments on commit a8cb207

Please sign in to comment.