wolkykim / libasyncd

Libasyncd is an embeddable event-based asynchronous Message/HTTP server framework for C/C++.
http://wolkykim.github.io/libasyncd/
Other
174 stars 36 forks source link

ad_http_send_header write "(null)" as HTTPVER #24

Open GuillaumeLeclerc opened 8 years ago

GuillaumeLeclerc commented 8 years ago

Hello,

In all request the version sent by the server is (null).

The output looks like this:

(null) 200 OK

Body

The only way I found to solve this is to set http->request.httver to HTTP/1.1 in the INIT event.

Is it the correct way to do ?

wolkykim commented 8 years ago

No not at all.

Have you run 'echo_http_server' in example directory? It should set it like below

$ curl http://localhost:8888 -v