Skip to content

--host has no effect when used in combination with --http2 #836

@gerhard

Description

@gerhard

In the context of thechangelog/pipely#46, I came across the following issue in oha 1.12.1

oha -n 10 --no-tui --http2 --host cdn.changelog.com https://changelog.com/
# ...
Status code distribution:
  [421] 10 responses ❌ RESPONSE STATUS SHOULD BE 404

Without the --http2 flag, it works as expected:

oha -n 10 --no-tui --host cdn.changelog.com https://changelog.com/
# ...
Status code distribution:
  [404] 10 responses ✅ STATUS CODE IS 404, AS EXPECTED

The above makes me suspect that --host flag has no effect when used in combination with the --http2 flag.

As a workaround, I changed all benchmarks to use HTTP 1.1.

Big fan of hey @hatoo , thank you for building such an awesome TUI-based HTTP bench tool 🙏


Related to:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions