hatoo / oha

Ohayou(おはよう), HTTP load generator, inspired by rakyll/hey with tui animation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom HTTP header without a space

sysmat opened this issue · comments

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
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!

commented
$ oha -V
oha 0.5.8
  • error: Error: Parse header
commented

v0.5.9 has been released right now.
It should have fixed your issue!