Custom HTTP header without a space
sysmat opened this issue · comments
Sysmat commented
- H Custom HTTP header. Examples: -H "foo: bar"
- If I use it like -H "foo:bar" -> Error: Parse header
- The problem is that gitlab ci schema do not allowed
oha test:
image:
name: apoutchika/oha
stage: stress_test
script:
- oha -V
- oha -H "API-KEY: ${API_KEY}" https://xxx
- oha -H "API-KEY: ${API_KEY}" https://xxx -> jobs:oha test sfinga:script config should be a string or a nested array of strings up to 10 levels deep
hatoo commented
Thanks for the issue!
I think we shouldn't reject such a header on the app side and should be handled by hyper
if it forms bad.
I decided to just trim ' ' from value's start.
I'll fix it soon!
Sysmat commented
$ oha -V
oha 0.5.8
- error: Error: Parse header
hatoo commented
v0.5.9 has been released right now.
It should have fixed your issue!