Lispython / human_curl

Simple Human wrapper for cURL library
http://h.wrttn.me/human_curl
Other
205 stars 43 forks source link

Leading spaces in header value not stripped #23

Closed stop777 closed 11 years ago

stop777 commented 11 years ago

Leading spaces in header value not stripped while parsing. This causes incorrect url joining in Request.history when url in Location header starts with http:// (" http://<...>".startswith('http') == False), so history list looks like this

['http://somedomain.com http://anotherdomain.com/someurl']