cli icon indicating copy to clipboard operation
cli copied to clipboard

Does not handle HTTP informational responses correctly

Open daguej opened this issue 6 years ago • 0 comments

httpie incorrectly treats informational responses (102-199) as a final response, printing the response headers and exiting.

$ http :5000/102
HTTP/1.1 102 Processing


$

Compare to what actually happens:

$ nc 127.0.0.1 5000
GET /102 HTTP/1.1

HTTP/1.1 102 Processing

HTTP/1.1 200 OK
…

httpie should print the zero or more informational responses (if response headers are enabled) before printing the final response and exiting.

daguej avatar Feb 12 '19 20:02 daguej