coding typo: headers.get('content_type')

I think it should be content-type as specified by the http protocol ...