1. Ben Bangert
  2. WebHelpers

Commits

Mike Orr  committed 9ad434b Draft Merge

Merged in aodag/webhelpers (pull request #1)

fix error on webob 1.2.3

  • Participants
  • Parent commits 9574054, 69ce4f7
  • Branches trunk

Comments (0)

Files changed (1)

File webhelpers/mimehelper.py

View file
             if '.' in last_part:
                 has_extension = True
         if 'HTTP_ACCEPT' in self.env:
-            possible_from_accept_header = webob.acceptparse.MIMEAccept('ACCEPT', 
-                self.env['HTTP_ACCEPT'])
+            possible_from_accept_header = webob.acceptparse.MIMEAccept(self.env['HTTP_ACCEPT'])
         if has_extension == False:
             if possible_from_accept_header is None:
                 return self._set_response_content_type(content_type)