-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Can't get rid of Server header: "uWebSockets_20" #177
Comments
If you use "Res.Write_Header ()" you are like overwriting the header, so it becomes 2 headers, the other header is run using uwebsocket in the source native.py file that connects uwebsocket |
This is a issue with uWS we will move to using a customized version, so we can set the Server header as a server option. |
@cirospaciari why not to simply modify this macro?
in this file in https://github.com/uNetworking/uWebSockets/blob/master/src/HttpResponse.h |
wow, that's amazing bro, you must check the uwebsockets code one by one |
This is pretty easy to fix, before sending the body (write/send/end) we need to check if we already sent the Server header, if not will use the default, will add a option to hide this server header if someone just dont wanna to see "uWebSockets" ou "socketify" on it. |
I have tried to overwrite it:
and I ended up with this:
curl -i -I http://127.0.0.1:9999/health
The text was updated successfully, but these errors were encountered: