You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the reason is missing because it isn't valid in HTTP/2. From the spec, section 8.1.2.4:
HTTP/2 does not define a way to carry the version or reason phrase
that is included in an HTTP/1.1 status line.
A simple option is for HTTPie to add back in the reason phrase automatically if not present. Another option is for hyper to do that. Another another option is to do whatever cURL does. Another another another option is to come up with a new approach of rendering HTTP/2 requests.
I see, It's a tricky one. I haven't finished reading the spec yet, but adopting a formatting similar to the one used in the examples section, where v1.1 vs. v2 messages are compared, might also be an option:
Should be
HTTP/2 200 OK
https://github.com/jakubroztocil/httpie/blob/337c05f95cc3b5435f9a7718bbd62debbf282d31/httpie/models.py#L66
// cc @Lukasa
The text was updated successfully, but these errors were encountered: