Lispython / human_curl

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

Fixed pool cleanup #24

Open stop777 opened 11 years ago

stop777 commented 11 years ago

There was an Exception when calling AsyncClient.get after AsyncClient.start finished first time

stop777 commented 11 years ago

Also commit 0bb00b1, fixes situation when server returns HTTP Status header twice. Example http://cox.com - returns ('HTTP/1.1', '301', 'Moved Permanently'), then ('HTTP/1.1', '200', 'OK'). This causes exception

File "human_curl/core.py", line 781, in _parse_headers_raw
    self._headers = CaseInsensitiveDict(last_header[1:])
  File "human_curl/utils.py", line 104, in __init__
    tmp_d = dict(*args, **kwargs)
stop777 commented 11 years ago

А чего c pool cleanup?

Может этот request зарубить?

вместо 0bb00b1, сделал другой фикс. В отдельном реквесте https://github.com/Lispython/human_curl/pull/25