Baidu-AIP / speech-demo

语音api示例

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python2 f.headers.keys() produces lowercase string list

zhengzh opened this issue · comments

python2 f.headers.keys() returns list of lowercase strings, so
has_error = ('content-type' not in f.headers.keys() or f.headers['Content-Type'].find('audio/') < 0)