mirror of
https://github.com/python/cpython.git
synced 2026-01-02 13:33:44 +00:00
If multiple header fields with the same name occur, they are combined according to the rules in RFC 2616 sec 4.2: Appending each subsequent field-value to the first, each separated by a comma. The order in which header fields with the same field-name are received is significant to the interpretation of the combined field value.
10 lines
360 B
Text
10 lines
360 B
Text
test_httplib
|
|
reply: 'HTTP/1.1 200 Ok\r\n'
|
|
Text
|
|
reply: 'HTTP/1.1 400.100 Not Ok\r\n'
|
|
BadStatusLine raised as expected
|
|
InvalidURL raised as expected
|
|
InvalidURL raised as expected
|
|
reply: 'HTTP/1.1 200 OK\r\n'
|
|
header: Set-Cookie: Customer="WILE_E_COYOTE"; Version="1"; Path="/acme"
|
|
header: Set-Cookie: Part_Number="Rocket_Launcher_0001"; Version="1"; Path="/acme"
|