因为你的req内容包含BOM字符,去掉req中BOM头的方法如下
if req.startswith(u''): req = req.encode('utf8')[3:].decode('utf8')