handle mime type detection for http range requests