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

Request with HEAD method not process #10

Open
LTiDi2000 opened this issue Nov 11, 2024 · 1 comment
Open

Request with HEAD method not process #10

LTiDi2000 opened this issue Nov 11, 2024 · 1 comment

Comments

@LTiDi2000
Copy link

Greetings,

There is an issue while your lib not process the raw requests with HEAD as request method.

Working well with GET/POST/PUT/...:

raw_request = b"GET / HTTP/1.1\r\nHost: google.com\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36\r\nAccept-Encoding: gzip,\
 deflate, br, zstd\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7\r\nConnection: keep-alive\r\nAccept-Language: e\
n-US,en;q=0.9\r\n\r\n"
image

Keep pending / no process / no connection with HEAD:

raw_request_head = b"HEAD / HTTP/1.1\r\nHost: google.com\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36\r\nAccept-Encoding:\
 gzip, deflate, br, zstd\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7\r\nConnection: keep-alive\r\nAccept-Langu\
age: en-US,en;q=0.9\r\n\r\n"
image

Please help check the issue and fix it!

Thanks and regards

@realgam3
Copy link
Owner

Thank you for the example,
I will check it out

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