{"action":"created","issue":{"url":"https://api.github.com/repos/mono/mono/issues/1494","labels_url":"https://api.github.com/repos/mono/mono/issues/1494/labels{/name}","comments_url":"https://api.github.com/repos/mono/mono/issues/1494/comments","events_url":"https://api.github.com/repos/mono/mono/issues/1494/events","html_url":"https://github.com/mono/mono/pull/1494","id":53598481,"number":1494,"title":"Send Content-Length header when it's set to 0","user":{"login":"MarcinJuraszek","id":6841973,"avatar_url":"https://avatars.githubusercontent.com/u/6841973?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcinJuraszek","html_url":"https://github.com/MarcinJuraszek","followers_url":"https://api.github.com/users/MarcinJuraszek/followers","following_url":"https://api.github.com/users/MarcinJuraszek/following{/other_user}","gists_url":"https://api.github.com/users/MarcinJuraszek/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcinJuraszek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcinJuraszek/subscriptions","organizations_url":"https://api.github.com/users/MarcinJuraszek/orgs","repos_url":"https://api.github.com/users/MarcinJuraszek/repos","events_url":"https://api.github.com/users/MarcinJuraszek/events{/privacy}","received_events_url":"https://api.github.com/users/MarcinJuraszek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-07T05:14:53Z","updated_at":"2015-03-16T11:58:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mono/mono/pulls/1494","html_url":"https://github.com/mono/mono/pull/1494","diff_url":"https://github.com/mono/mono/pull/1494.diff","patch_url":"https://github.com/mono/mono/pull/1494.patch"},"body":"Right now when you set `ContentLength` to `0` it's not sent as part of the request. That's not how .NET Framework works (see [sourceof.net](http://referencesource.microsoft.com/#System/net/System/Net/HttpWebRequest.cs,4911)). Also, there are valid cases when server expects Content-Length header to be set to 0 when there is no request body (I run into one of them today :()"},"comment":{"url":"https://api.github.com/repos/mono/mono/issues/comments/81604988","html_url":"https://github.com/mono/mono/pull/1494#issuecomment-81604988","issue_url":"https://api.github.com/repos/mono/mono/issues/1494","id":81604988,"user":{"login":"alexrp","id":44076,"avatar_url":"https://avatars.githubusercontent.com/u/44076?v=3","gravatar_id":"","url":"https://api.github.com/users/alexrp","html_url":"https://github.com/alexrp","followers_url":"https://api.github.com/users/alexrp/followers","following_url":"https://api.github.com/users/alexrp/following{/other_user}","gists_url":"https://api.github.com/users/alexrp/gists{/gist_id}","starred_url":"https://api.github.com/users/alexrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexrp/subscriptions","organizations_url":"https://api.github.com/users/alexrp/orgs","repos_url":"https://api.github.com/users/alexrp/repos","events_url":"https://api.github.com/users/alexrp/events{/privacy}","received_events_url":"https://api.github.com/users/alexrp/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T11:58:25Z","updated_at":"2015-03-16T11:58:25Z","body":"approve"}}