Open nyurik opened 4 months ago
You can add a custom header using -H
option and it overwrites the default header value.
oha -n 1 http://localhost:3000 -H "accept-encoding: gzip"
✦ ❯ nc -l 3000
GET / HTTP/1.1
accept: */*
accept-encoding: gzip
user-agent: oha/1.4.4
host: localhost:3000
I was doing some testing of the Martin tile server using OHA, and in this case
Brotli
compression seems to be the culprit. Usingoha --disable-compression
does not allow propergzip
vsbr
testing.Please add
--accepted-encoding
parameter that allows custom header parameters.Thanks for the great tool!