-
Notifications
You must be signed in to change notification settings - Fork 153
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 GET Request with content-length > 0 #378
Comments
It is not technically illegal for a One idea I can think of is to use the server's In the meantime, I will consider adding logic to |
Thank you very much for you reply, Remy! Unfortunately I was unable to identify http verb (to check it if is a GET) inside OnHeadersAvailable event handler since there is no easy access to RequestInfo. Is there any way to check this on nHeadersAvailable event handler ? |
Unfortunately, no. That will have to be added as a new feature (#379). However, in the meantime, you do have access to the URL that is being requested, so if you know the provided URL only handles |
Hi, Remy!
First of all congratulations for your brilliant work!
I've noticed that a GET request with content-length > 0 and no payload (yes, it is a malformed header) hangs the connection, since the indy server is still waiting for some content.
My Indy production server is receiving some malformed requests of that kind from suspicious origins and I would like to know if there is some way to avoid this hang
Attached is a very simple project group illustrating the problem. Start the server, put any number into content-lenght on client and click on GET to see it hanging.
Thank you very much for any advice!
Projects.zip
The text was updated successfully, but these errors were encountered: