PyBaiduYuyin icon indicating copy to clipboard operation
PyBaiduYuyin copied to clipboard

'HTTPMessage' object has no attribute 'getheader'

Open alatriste-lee opened this issue 8 years ago • 2 comments

content_type = response.info().getheader('Content-Type')

Connected to pydev debugger (build 162.1967.10) Traceback (most recent call last): File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1580, in globals = debugger.run(setup['file'], None, None, is_module) File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 964, in run pydev_imports.execfile(file, globals, locals) # execute the script File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "/Users/lxislx/PycharmProjects/PyBaiduYuyin百度语音/PyBaiduYuyin/init.py", line 483, in t.say("你好,这里是百度语音识别模块测试") File "/Users/lxislx/PycharmProjects/PyBaiduYuyin百度语音/PyBaiduYuyin/init.py", line 191, in say content_type = response.info().getheader('Content-Type') AttributeError: 'HTTPMessage' object has no attribute 'getheader'

alatriste-lee avatar Sep 22 '16 05:09 alatriste-lee

If you have solved this problem? Thanks!

JuneUncle avatar Nov 03 '16 03:11 JuneUncle

solve it ?

prakasa1904 avatar Jan 06 '18 16:01 prakasa1904