Added a step to get the mime type with GET if HEAD returns a failure.