Commits

David Chambers committed cd97d28

akismet: fall back to "" if User-Agent header is absent

  • Participants
  • Parent commits 214ba10

Comments (0)

Files changed (1)

             args = {
                 'blog': mango.settings.BASE_URL,
                 'user_ip': self.request.META['REMOTE_ADDR'],
-                'user_agent': self.request.META['HTTP_USER_AGENT'],
+                'user_agent': self.request.META.get('HTTP_USER_AGENT', ''),
                 'referrer': self.request.META['HTTP_REFERER'],
                 'permalink': self.request.META['HTTP_REFERER'],
                 'comment_type': 'comment',