Skip to content

Commit

Permalink
Send referrer with review decisions
Browse files Browse the repository at this point in the history
  • Loading branch information
kewisch committed Nov 15, 2019
1 parent e2a0e7d commit 5cb31dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyamo/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,11 @@ def decide(self, action, comments, versions=[], versionids=[]):
'info_request_deadline': 7,
'versions': versionids
}
headers = {
'referer': self.url
}

req = self.session.post(self.url, data=postdata)
req = self.session.post(self.url, data=postdata, headers=headers)
return req.status_code == 200

def admin_disable(self):
Expand Down

0 comments on commit 5cb31dc

Please sign in to comment.