python2 f.headers.keys() produces lowercase string list
zhengzh opened this issue · comments
kuisong zheng commented
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)