From 5d83a420e8cf0b009aaefa4786059b714be78d1b Mon Sep 17 00:00:00 2001 From: Fitz Elliott Date: Mon, 26 Aug 2024 14:57:34 -0400 Subject: [PATCH] don't pass all headers to do_check_spam * Something in python-upgrade started including the request input object in the headers. Celery/kombu can't serialize this and dies screaming. Silence the screams. [ENG-6022] --- osf/models/spam.py | 1 - 1 file changed, 1 deletion(-) diff --git a/osf/models/spam.py b/osf/models/spam.py index c6d0a438f5c..993039b1fcf 100644 --- a/osf/models/spam.py +++ b/osf/models/spam.py @@ -200,7 +200,6 @@ def do_check_spam(self, author, author_email, content, request_headers): 'user_agent': request_headers.get('User-Agent'), 'referer': request_headers.get('Referer'), } - request_kwargs.update(request_headers) check_resource_for_domains_postcommit( self.guids.first()._id,