{"action":"created","issue":{"url":"https://api.github.com/repos/gopherjs/gopherjs/issues/195","labels_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/195/comments","events_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/195/events","html_url":"https://github.com/gopherjs/gopherjs/pull/195","id":61311831,"number":195,"title":"natives/net/http: set response ContentLength from headers on HEAD requests","user":{"login":"encryptio","id":67937,"avatar_url":"https://avatars.githubusercontent.com/u/67937?v=3","gravatar_id":"","url":"https://api.github.com/users/encryptio","html_url":"https://github.com/encryptio","followers_url":"https://api.github.com/users/encryptio/followers","following_url":"https://api.github.com/users/encryptio/following{/other_user}","gists_url":"https://api.github.com/users/encryptio/gists{/gist_id}","starred_url":"https://api.github.com/users/encryptio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/encryptio/subscriptions","organizations_url":"https://api.github.com/users/encryptio/orgs","repos_url":"https://api.github.com/users/encryptio/repos","events_url":"https://api.github.com/users/encryptio/events{/privacy}","received_events_url":"https://api.github.com/users/encryptio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-14T00:23:27Z","updated_at":"2015-03-14T01:15:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gopherjs/gopherjs/pulls/195","html_url":"https://github.com/gopherjs/gopherjs/pull/195","diff_url":"https://github.com/gopherjs/gopherjs/pull/195.diff","patch_url":"https://github.com/gopherjs/gopherjs/pull/195.patch"},"body":"The `(*http.Response).ContentLength` field was incorrectly being set to `0` during `HEAD` requests. This patch uses the `Content-Length` response header if it exists, otherwise leaves it at `-1`, documented in `net/http` to mean \"don't know\"; this matches the behavior of Go's `net/http` package."},"comment":{"url":"https://api.github.com/repos/gopherjs/gopherjs/issues/comments/79635296","html_url":"https://github.com/gopherjs/gopherjs/pull/195#issuecomment-79635296","issue_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/195","id":79635296,"user":{"login":"encryptio","id":67937,"avatar_url":"https://avatars.githubusercontent.com/u/67937?v=3","gravatar_id":"","url":"https://api.github.com/users/encryptio","html_url":"https://github.com/encryptio","followers_url":"https://api.github.com/users/encryptio/followers","following_url":"https://api.github.com/users/encryptio/following{/other_user}","gists_url":"https://api.github.com/users/encryptio/gists{/gist_id}","starred_url":"https://api.github.com/users/encryptio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/encryptio/subscriptions","organizations_url":"https://api.github.com/users/encryptio/orgs","repos_url":"https://api.github.com/users/encryptio/repos","events_url":"https://api.github.com/users/encryptio/events{/privacy}","received_events_url":"https://api.github.com/users/encryptio/received_events","type":"User","site_admin":false},"created_at":"2015-03-14T01:15:42Z","updated_at":"2015-03-14T01:15:42Z","body":"I tested both and both worked, that happens to be the last capitalization I checked; Content-Length is more canonical though. I'll update the patch."}}