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

Fixing #1254 - Remove support for X-Reported-With header #1334

Merged
merged 2 commits into from
Feb 7, 2017

Conversation

zoepage
Copy link
Member

@zoepage zoepage commented Feb 7, 2017

@miketaylr
Copy link
Member

In terms of fixing the issue, you nailed it. I have a small Python doubt (which means a bug I think I introduced... will comment, because you can probably fix it in this PR).

Copy link
Member

@miketaylr miketaylr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to give a default value for session.pop, I think.

form['reported_with'] = session.pop('src')
else:
form['reported_with'] = request.headers.get('X-Reported-With', 'web')
form['reported_with'] = session.pop('src')

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@miketaylr
Copy link
Member

r+, thanks!

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

Successfully merging this pull request may close these issues.

3 participants