This repository was archived by the owner on Jan 13, 2021. It is now read-only.
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
Impossible to override default headers from CLI #152
Closed
Description
Default headers are started with ':' and it is used to separate headers key and value in CLI arguments. And hyper does not add ':' to the specified key also. For example, hyper sets :authority
to the hostname by default and you can't override it:
$ hyper --debug GET https://google.com:443/ authority:google.ru
...
HPACK encoding [(':method', 'GET'), (':scheme', 'https'), (':authority', 'google.com'), (':path', '/'), ('authority', 'google.ru')]
Or even this way:
$ hyper --debug GET https://google.com:443/ :authority:google.ru
...
HPACK encoding [(':method', 'GET'), (':scheme', 'https'), (':authority', 'google.com'), (':path', '/'), ('', 'authority:google.ru')]