Commits

Jesper Nøhr committed 3bd2895

applying patch from benoitg.
since we don't have any tests for oauth, I don't know if this will break anything.
if it does, feel free to back out this changeset.

  • Participants
  • Parent commits 41996d6

Comments (0)

Files changed (1)

File piston/oauth.py

     @staticmethod
     def _split_header(header):
         params = {}
+        header = header.replace('OAuth ', '', 1)
         parts = header.split(',')
         for param in parts:
             # ignore realm parameter
-            if param.find('OAuth realm') > -1:
+            if param.find('realm') > -1:
                 continue
             # remove whitespace
             param = param.strip()