ckan / ckanext-archiver

Archive CKAN resources
MIT License
21 stars 46 forks source link

Check if the response returned a correct status code #5

Closed volpino closed 11 years ago

volpino commented 11 years ago

The current implementation of download first performs an HEAD requests and then if everything went fine it gets the file. However it could happen that at the second request (GET) the status code is different from the first request (HEAD), so it's better to check it again.