added handling for content-type of application/octet-stream