libasyncd
libasyncd copied to clipboard
ad_http_send_header write "(null)" as HTTPVER
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 ?
No not at all.
Have you run 'echo_http_server' in example directory? It should set it like below
$ curl http://localhost:8888 -v
- Rebuilt URL to: http://localhost:8888/
- Hostname was NOT found in DNS cache
- Trying 127.0.0.1...
- Connected to localhost (127.0.0.1) port 8888 (#0)
< HTTP/1.1 200 OK < Content-Length: 0 < Content-Type: text/plain < Connection: Keep-Alive <GET / HTTP/1.1 User-Agent: curl/7.35.0 Host: localhost:8888 Accept: /
- Connection #0 to host localhost left intact