Skip to content

Commit

Permalink
Merge pull request #1334 from /issues/1254/1
Browse files Browse the repository at this point in the history
Fixing #1254 - Remove support for X-Reported-With header
  • Loading branch information
Mike Taylor authored Feb 7, 2017
2 parents 703b534 + d16ac69 commit bb90834
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions webcompat/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,7 @@ def create_issue():
flash(msg, 'notimeout')
return redirect(url_for('index'))
form['ua_header'] = request.headers.get('User-Agent')
# Currently we support either a src GET param, or X-Reported-With header
# to track where the report originated from.
# See https://github.com/webcompat/webcompat.com/issues/1254 to track
# supporting only the src param
if session.get('src'):
form['reported_with'] = session.pop('src')
else:
form['reported_with'] = request.headers.get('X-Reported-With', 'web')
form['reported_with'] = session.pop('src', 'web')
# Logging the ip and url for investigation
log = app.logger
log.setLevel(logging.INFO)
Expand Down

0 comments on commit bb90834

Please sign in to comment.