{"action":"created","issue":{"url":"https://api.github.com/repos/newrelic/dkenv/issues/12","labels_url":"https://api.github.com/repos/newrelic/dkenv/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/newrelic/dkenv/issues/12/comments","events_url":"https://api.github.com/repos/newrelic/dkenv/issues/12/events","html_url":"https://github.com/newrelic/dkenv/pull/12","id":125300068,"number":12,"title":"Fail on download of != application/octet-stream","user":{"login":"idleyoungman","id":144959,"avatar_url":"https://avatars.githubusercontent.com/u/144959?v=3","gravatar_id":"","url":"https://api.github.com/users/idleyoungman","html_url":"https://github.com/idleyoungman","followers_url":"https://api.github.com/users/idleyoungman/followers","following_url":"https://api.github.com/users/idleyoungman/following{/other_user}","gists_url":"https://api.github.com/users/idleyoungman/gists{/gist_id}","starred_url":"https://api.github.com/users/idleyoungman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idleyoungman/subscriptions","organizations_url":"https://api.github.com/users/idleyoungman/orgs","repos_url":"https://api.github.com/users/idleyoungman/repos","events_url":"https://api.github.com/users/idleyoungman/events{/privacy}","received_events_url":"https://api.github.com/users/idleyoungman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-07T01:10:42Z","updated_at":"2016-01-07T04:00:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/newrelic/dkenv/pulls/12","html_url":"https://github.com/newrelic/dkenv/pull/12","diff_url":"https://github.com/newrelic/dkenv/pull/12.diff","patch_url":"https://github.com/newrelic/dkenv/pull/12.patch"},"body":"dkenv now checks for a 200 on download, but this is a belt and\r\nsuspenders approach to not writing out something that is not a docker\r\nbinary.\r\n\r\nCC @dselans @mikkergimenez "},"comment":{"url":"https://api.github.com/repos/newrelic/dkenv/issues/comments/169542019","html_url":"https://github.com/newrelic/dkenv/pull/12#issuecomment-169542019","issue_url":"https://api.github.com/repos/newrelic/dkenv/issues/12","id":169542019,"user":{"login":"idleyoungman","id":144959,"avatar_url":"https://avatars.githubusercontent.com/u/144959?v=3","gravatar_id":"","url":"https://api.github.com/users/idleyoungman","html_url":"https://github.com/idleyoungman","followers_url":"https://api.github.com/users/idleyoungman/followers","following_url":"https://api.github.com/users/idleyoungman/following{/other_user}","gists_url":"https://api.github.com/users/idleyoungman/gists{/gist_id}","starred_url":"https://api.github.com/users/idleyoungman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idleyoungman/subscriptions","organizations_url":"https://api.github.com/users/idleyoungman/orgs","repos_url":"https://api.github.com/users/idleyoungman/repos","events_url":"https://api.github.com/users/idleyoungman/events{/privacy}","received_events_url":"https://api.github.com/users/idleyoungman/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T04:00:36Z","updated_at":"2016-01-07T04:00:36Z","body":"Good call on returning the error.\r\n\r\nTested with the `resp.StatusCode` check commented out:\r\n```sh\r\n$ ./dkenv client 1.7.3\r\nINFO[0000] Docker version 1.7.3 not found - attempting to download... \r\nFATA[0000] Content-Type mismatch: image/jpeg detected   \r\n```"}}