-
Notifications
You must be signed in to change notification settings - Fork 334
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
How to change default http protocol version from 0.9 to 1.1 #708
Comments
Hello, I‘m puzzled because we explicitly write HTTP 1.1 versioned responses. Which Ubuntu version do you use? Thanks, |
Could you please run curl with |
Ubuntu 22.04.4 LTS.
|
Could be related, I have also running mongoose webserver on different port in the same app. When I make curl request mongoose seems to be logging some stuff I dont understand:
Here is function in mongoose.c:
|
I rebuilded my app without creating web server with mongoose, but still am having same log output from mongoose. This gave me suspicion that something smelly goes on in linking, so I completely removed mongoose dependency files from building process. And viola, curl works as it supposed to:
So its definetely linking. But I need that web server on other port too.. |
I believe civetweb is a fork of mongoose. They share the same symbols and must not be mixed within a process. |
I see. Is there any docs/example on how to make Exposer use different web server? Like mongoose in this case. |
I installed prometheus-cpp following instructions from Ubuntu apt. Seems like it only supports HTTP 0.9, because
curl http://127.0.0.1:9090/metrics
returns
Received HTTP/0.9 when not allowed
and
curl --http0.9 http://127.0.0.1:9090/metrics
works. Is there a way to use HTTP 1.1 protocol?The text was updated successfully, but these errors were encountered: