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

Store. _get_thrift_client() causing invalid User Agent values #14

Open
chenjianjx opened this issue Mar 2, 2016 · 0 comments
Open

Store. _get_thrift_client() causing invalid User Agent values #14

chenjianjx opened this issue Mar 2, 2016 · 0 comments

Comments

@chenjianjx
Copy link

The generated User-Agent will not parse the validation of httpclient.

It generated such a "User-Agent" for me: b'en-devtoken:V=2 / 1.25; Python / 3.5.1 (v3.5.1:37a07cee5969, Dec 5 2015, 21:12:44) \n[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)];'

And an error was raised at "File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1060, in putheader" since function _is_illegal_header_value() says it is an invalid user agent.

I am running python3.5.1 on Mac OS inside an django app whose version is 1.9.

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

1 participant