rakyll / hey

HTTP load generator, ApacheBench (ab) replacement
Apache License 2.0
17.66k stars 1.17k forks source link

Fix User-Agent set with headers #209

Closed spk closed 2 years ago

spk commented 4 years ago

on command line the option -H "User-Agent: CustomUserAgent" is ignored and default user agent is always used First check if its defined then fallback to default

ref https://github.com/rakyll/hey/pull/87 fix https://github.com/rakyll/hey/issues/157

Other tools like curl and w3m allow this let me know if its clean go

spk commented 2 years ago

ref https://github.com/rakyll/hey/commit/898582754e00405372f0686641441168f4e2f489