• Jeremy Hylton's avatar
    Handle HTTP/0.9 responses. · d46aa37d
    Jeremy Hylton yazdı
    Section 19.6 of RFC 2616 (HTTP/1.1):
    
       It is beyond the scope of a protocol specification to mandate
       compliance with previous versions. HTTP/1.1 was deliberately
       designed, however, to make supporting previous versions easy....
    
       And we would expect HTTP/1.1 clients to:
    
          - recognize the format of the Status-Line for HTTP/1.0 and 1.1
            responses;
    
          - understand any valid response in the format of HTTP/0.9, 1.0, or
            1.1.
    
    The changes to the code do handle response in the format of HTTP/0.9.
    Some users may consider this a bug because all responses with a
    sufficiently corrupted status line will look like an HTTP/0.9
    response.  These users can pass strict=1 to the HTTP constructors to
    get a BadStatusLine exception instead.
    
    While this is a new feature of sorts, it enhances the robustness of
    the code (be tolerant in what you accept).  Thus, I consider it a bug
    fix candidate.
    
    XXX strict needs to be documented.
    d46aa37d
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...