{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/4456","labels_url":"https://api.github.com/repos/chef/chef/issues/4456/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/4456/comments","events_url":"https://api.github.com/repos/chef/chef/issues/4456/events","html_url":"https://github.com/chef/chef/issues/4456","id":128588455,"number":4456,"title":"remote_file should use Content-MD5 header if available","user":{"login":"docwhat","id":40799,"avatar_url":"https://avatars.githubusercontent.com/u/40799?v=3","gravatar_id":"","url":"https://api.github.com/users/docwhat","html_url":"https://github.com/docwhat","followers_url":"https://api.github.com/users/docwhat/followers","following_url":"https://api.github.com/users/docwhat/following{/other_user}","gists_url":"https://api.github.com/users/docwhat/gists{/gist_id}","starred_url":"https://api.github.com/users/docwhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docwhat/subscriptions","organizations_url":"https://api.github.com/users/docwhat/orgs","repos_url":"https://api.github.com/users/docwhat/repos","events_url":"https://api.github.com/users/docwhat/events{/privacy}","received_events_url":"https://api.github.com/users/docwhat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-25T17:04:49Z","updated_at":"2016-01-25T21:22:40Z","closed_at":null,"body":"If a URL has the `Content-MD5` header when a `HEAD` request is sent, it should be used by `remote_file` if the `checksum` attribute isn't set.\r\n\r\n[rfc2616 Content-MD5 docs](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.15)\r\n\r\nExample of a `HEAD` request:\r\n\r\n```\r\n$ curl -I http://download.sysinternals.com/files/bginfo.zip\r\nHTTP/1.1 200 OK\r\nAccept-Ranges: bytes\r\nContent-MD5: QmsDlpevg1tt+YZI8Rz5KA==\r\nContent-Type: application/x-zip-compressed\r\nDate: Mon, 25 Jan 2016 16:58:38 GMT\r\nEtag: 0x8D31CA686B02A28\r\nLast-Modified: Thu, 14 Jan 2016 05:49:53 GMT\r\nServer: ECAcc (lga/134E)\r\nX-Cache: HIT\r\nx-ms-blob-type: BlockBlob\r\nx-ms-lease-status: unlocked\r\nx-ms-meta-CbModifiedTime: Thu, 01 Aug 2013 20:25:53 GMT\r\nx-ms-request-id: 098550c5-0001-002e-2d91-57e753000000\r\nx-ms-version: 2009-09-19\r\nContent-Length: 984141\r\nConnection: Keep-Alive\r\n```"},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/174668370","html_url":"https://github.com/chef/chef/issues/4456#issuecomment-174668370","issue_url":"https://api.github.com/repos/chef/chef/issues/4456","id":174668370,"user":{"login":"lamont-granquist","id":454857,"avatar_url":"https://avatars.githubusercontent.com/u/454857?v=3","gravatar_id":"","url":"https://api.github.com/users/lamont-granquist","html_url":"https://github.com/lamont-granquist","followers_url":"https://api.github.com/users/lamont-granquist/followers","following_url":"https://api.github.com/users/lamont-granquist/following{/other_user}","gists_url":"https://api.github.com/users/lamont-granquist/gists{/gist_id}","starred_url":"https://api.github.com/users/lamont-granquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamont-granquist/subscriptions","organizations_url":"https://api.github.com/users/lamont-granquist/orgs","repos_url":"https://api.github.com/users/lamont-granquist/repos","events_url":"https://api.github.com/users/lamont-granquist/events{/privacy}","received_events_url":"https://api.github.com/users/lamont-granquist/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T21:22:40Z","updated_at":"2016-01-25T21:22:40Z","body":"should this just go into http middleware for everything, similar to the content length validation?"}}