{"action":"created","issue":{"url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/101","labels_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/101/comments","events_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/101/events","html_url":"https://github.com/artefactual/archivematica-storage-service/pull/101","id":123336837,"number":101,"title":"api: allow http head in extract_file_request","user":{"login":"hakamine","id":10160634,"avatar_url":"https://avatars.githubusercontent.com/u/10160634?v=3","gravatar_id":"","url":"https://api.github.com/users/hakamine","html_url":"https://github.com/hakamine","followers_url":"https://api.github.com/users/hakamine/followers","following_url":"https://api.github.com/users/hakamine/following{/other_user}","gists_url":"https://api.github.com/users/hakamine/gists{/gist_id}","starred_url":"https://api.github.com/users/hakamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakamine/subscriptions","organizations_url":"https://api.github.com/users/hakamine/orgs","repos_url":"https://api.github.com/users/hakamine/repos","events_url":"https://api.github.com/users/hakamine/events{/privacy}","received_events_url":"https://api.github.com/users/hakamine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-21T18:55:02Z","updated_at":"2016-01-04T23:42:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/artefactual/archivematica-storage-service/pulls/101","html_url":"https://github.com/artefactual/archivematica-storage-service/pull/101","diff_url":"https://github.com/artefactual/archivematica-storage-service/pull/101.diff","patch_url":"https://github.com/artefactual/archivematica-storage-service/pull/101.patch"},"body":"This is required for Binder changes in https://github.com/artefactual/client-moma-atom/pull/68 to work \r\nCreated this PR for merging into the branch dev/issue-8859-arkivum-fixity #95 (not sure if that is correct or should have requested to go into qa/1.x instead)"},"comment":{"url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/comments/168846052","html_url":"https://github.com/artefactual/archivematica-storage-service/pull/101#issuecomment-168846052","issue_url":"https://api.github.com/repos/artefactual/archivematica-storage-service/issues/101","id":168846052,"user":{"login":"hakamine","id":10160634,"avatar_url":"https://avatars.githubusercontent.com/u/10160634?v=3","gravatar_id":"","url":"https://api.github.com/users/hakamine","html_url":"https://github.com/hakamine","followers_url":"https://api.github.com/users/hakamine/followers","following_url":"https://api.github.com/users/hakamine/following{/other_user}","gists_url":"https://api.github.com/users/hakamine/gists{/gist_id}","starred_url":"https://api.github.com/users/hakamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakamine/subscriptions","organizations_url":"https://api.github.com/users/hakamine/orgs","repos_url":"https://api.github.com/users/hakamine/repos","events_url":"https://api.github.com/users/hakamine/events{/privacy}","received_events_url":"https://api.github.com/users/hakamine/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T23:42:04Z","updated_at":"2016-01-04T23:42:04Z","body":"The HEAD request is used by Binder to verify the file exists. If it does, Binder then uses a GET request to download it, and if it doesn't it uses a GET request to obtain the response error code. According to the notes in https://github.com/artefactual/client-moma-atom/pull/68 the division in these steps (check and download) was done to be able to show download problems as alerts in the Binder UI.\r\nAlthough it seems to be working (for relatively small files) I think it would be better if SS doesn't return the full body with the HEAD response, could it be implemented easily?"}}