diff pinlib/pinlib.py @ 83:d521df55f56c

fix pinlib cookie parsing and check in pics app
author paulo
date Wed, 29 Jun 2016 00:48:53 -0700
parents d7d67887102f
children
line diff
     1.1 --- a/pinlib/pinlib.py	Wed Jun 29 00:11:55 2016 -0700
     1.2 +++ b/pinlib/pinlib.py	Wed Jun 29 00:48:53 2016 -0700
     1.3 @@ -2,7 +2,7 @@
     1.4  
     1.5  
     1.6  def parse_cookies(environ):
     1.7 -	return urlparse.parse_qs(environ.get("HTTP_COOKIE", ""))
     1.8 +	return urlparse.parse_qs(environ.get("HTTP_COOKIE", "").replace("; ", "&"))
     1.9  
    1.10  
    1.11  class PinFailError(Exception):