localproxy checks content_type before spawning thread