Update utils.py
authormikecool1000 <mjdelay@calpoly.edu>
Thu, 9 Oct 2014 02:26:07 +0000 (19:26 -0700)
committermikecool1000 <mjdelay@calpoly.edu>
Thu, 9 Oct 2014 02:26:07 +0000 (19:26 -0700)
Fixed -2250

requests/utils.py

index 1868f861ba4dfede9b7d16a31071848a98696f35..058b608b6ebfa7385810d5d7573e56ccf0c8a134 100644 (file)
@@ -567,7 +567,7 @@ def parse_header_links(value):
 
     replace_chars = " '\""
 
-    for val in value.split(","):
+    for val in re.split(",\ *<",value):
         try:
             url, params = val.split(";", 1)
         except ValueError: