httpie / httpie-http2

(DEPRECATED) Experimental HTTP/2 plugin for HTTPie
https://httpie.org
Other
68 stars 4 forks source link

Request incorrectly shows `Connection` header #3

Open jkbrzt opened 9 years ago

jkbrzt commented 9 years ago

…even though it's not used by HTTP/2

https://github.com/Lukasa/hyper/issues/83

$ http -v  https://nghttp2.org/httpbin/get
GET /httpbin/get HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: nghttp2.org
User-Agent: HTTPie/0.9.1
HTTP/2 200
access-control-allow-credentials: true
access-control-allow-origin: *
content-length: 268
content-type: application/json
date: Sat, 07 Feb 2015 17:02:52 GMT
server: nghttpx nghttp2/0.7.4-DEV
strict-transport-security: max-age=31536000
via: 1.1 nghttpx
Lukasa commented 9 years ago

When does HTTPie print the headers? I can't touch the request until it gets very low down indeed: the send method of the adapter. If it's printed any time before then I can't manipulate it appropriately.