Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong HTTP request target #255

Closed
Chocobo1 opened this issue Jul 9, 2023 · 1 comment · Fixed by #256
Closed

Wrong HTTP request target #255

Chocobo1 opened this issue Jul 9, 2023 · 1 comment · Fixed by #256

Comments

@Chocobo1
Copy link
Contributor

Chocobo1 commented Jul 9, 2023

I'll put an example to explain it:

# console 1
nc -l 8080  # listen on 127.0.0.1:8080

# console 2 
oha http://127.0.0.1:8080

# console 1 outputs:
GET http://127.0.0.1:8080/ HTTP/1.1
accept: */*
accept-encoding: gzip, compress, deflate, br
host: 127.0.0.1:8080

The http://127.0.0.1:8080/ is wrong and it should be /.

Here is the request from hey http://127.0.0.1:8080:

GET / HTTP/1.1
Host: 127.0.0.1:8080
User-Agent: hey/0.0.1
Content-Type: text/html
Accept-Encoding: gzip

Versions:

  • oha 0.6.0
  • hey 0.1.4
@hatoo hatoo mentioned this issue Jul 9, 2023
@hatoo
Copy link
Owner

hatoo commented Jul 9, 2023

Thanks for your issue!
This going to be fixed in #256.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants