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

Crash using umlauts in "User-Agent" string. #104

Closed
duncrow opened this issue Jan 19, 2017 · 1 comment
Closed

Crash using umlauts in "User-Agent" string. #104

duncrow opened this issue Jan 19, 2017 · 1 comment
Labels

Comments

@duncrow
Copy link

duncrow commented Jan 19, 2017

$ http-prompt www.orf.at
Version: 0.9.0
http://www.orf.at> User-Agent:"Ö"
Traceback (most recent call last):
File "/home/user/.local/bin/http-prompt", line 11, in
sys.exit(cli())
File "/usr/local/lib/python2.7/dist-packages/click-6.6-py2.7.egg/click/core.py", line 716, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click-6.6-py2.7.egg/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click-6.6-py2.7.egg/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click-6.6-py2.7.egg/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/lib/python2.7/site-packages/http_prompt/cli.py", line 129, in cli
execute(text, context, listener=listener)
File "/home/user/.local/lib/python2.7/site-packages/http_prompt/execution.py", line 522, in execute
click.secho(str(err), err=True, fg='red')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 166: ordinal not in range(128)

@eliangcs eliangcs added the bug label Jan 19, 2017
eliangcs added a commit that referenced this issue Jan 23, 2017
Fix #104: Crash when using non-ascii on Python 2.7
@eliangcs
Copy link
Contributor

Fixed in v0.9.1. Thanks for reporting!

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

No branches or pull requests

2 participants