DelightRun / PyBaiduYuyin

This project has been deprecated
MIT License
77 stars 38 forks source link

'HTTPMessage' object has no attribute 'getheader' #6

Open alatriste-lee opened 8 years ago

alatriste-lee commented 8 years ago

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'

JuneUncle commented 8 years ago

If you have solved this problem? Thanks!

prakasa1904 commented 6 years ago

solve it ?