some servers don't return a content-type

Just guess a content-type if the server doesn't return a content-type.