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

Handle missing user-agent header #24

Closed
glaslos opened this issue Jun 3, 2016 · 1 comment
Closed

Handle missing user-agent header #24

glaslos opened this issue Jun 3, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@glaslos
Copy link
Member

glaslos commented Jun 3, 2016

This lookup can cause a KeyError:

self.user_agent = data['headers']['USER-AGENT']

We should probably make lower case the key and test if the user agent is in the header dict.

@glaslos
Copy link
Member Author

glaslos commented Jun 6, 2016

Closed with 9384e86

@glaslos glaslos closed this as completed Jun 6, 2016
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