• Jeremy Hylton's avatar
    Fix two bugs in the new do_open() implementation for HTTPHandler. · b3ee6f99
    Jeremy Hylton yazdı
    Invoke the standard error handlers for non-200 responses.
    
    Always supply a "Connection: close" header to prevent the server from
    leaving the connection open.  Downstream users of the socket may
    attempt recv()/read() with no arguments, which would block if the
    connection were kept open.
    b3ee6f99
test_urllib2.py 23.7 KB