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

http header parse invalid when request multiple url request in one session #72

Open
topelinux opened this issue Feb 14, 2024 · 1 comment

Comments

@topelinux
Copy link

to produce
start the ./functional-test-server
then

curl -X GET --header "content-type: application/json"  -v   http://127.0.0.1:8080/echo --next --header "content-type: application/json"  -v   http://127.0.0.1:8080/headers

the expected behavior is the receive on client side

Host: 127.0.0.1:8080
User-Agent: curl/8.1.2
Accept: */*
content-type: application/json

the acutul behavior is no response on server side, for the server the url is not valid parsed, added the screenshot for information

Screen Shot 2024-02-14 at 5 36 29 PM
@DarkCat5501
Copy link

I'm facing almost the same problem,but noticed that it doest event need to call any methods, here's a quick example:

image

when making requests with insomnia:

image

i noticed that it is happenig whenever the target length increases it causes the next request to not reset the size and leak data from the rest of the header.

Also, sometimes the oposite happens, and the target doesn't update, showing the last request's target

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

No branches or pull requests

2 participants