libasyncd icon indicating copy to clipboard operation
libasyncd copied to clipboard

ad_http_send_header write "(null)" as HTTPVER

Open GuillaumeLeclerc opened this issue 9 years ago • 1 comments

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 ?

GuillaumeLeclerc avatar Apr 29 '16 20:04 GuillaumeLeclerc

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)

    GET / HTTP/1.1 User-Agent: curl/7.35.0 Host: localhost:8888 Accept: /

    < HTTP/1.1 200 OK < Content-Length: 0 < Content-Type: text/plain < Connection: Keep-Alive <
  • Connection #0 to host localhost left intact

wolkykim avatar Apr 29 '16 23:04 wolkykim