From 5cb31dc04dcf748854f71bfbca2fa370a5d81819 Mon Sep 17 00:00:00 2001 From: Philipp Kewisch Date: Fri, 15 Nov 2019 08:39:00 +0100 Subject: [PATCH] Send referrer with review decisions --- pyamo/review.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyamo/review.py b/pyamo/review.py index 8890675..9596328 100644 --- a/pyamo/review.py +++ b/pyamo/review.py @@ -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):