Improve Content-Type detection as HTTP client