Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alatriste-lee opened this issue Sep 22, 2016 · 2 comments
Open

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

alatriste-lee opened this issue Sep 22, 2016 · 2 comments

Comments

@alatriste-lee
Copy link

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
Copy link

If you have solved this problem? Thanks!

@prakasa1904
Copy link

solve it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants