Skip to content
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

ad_http_send_header write "(null)" as HTTPVER #24

Open
GuillaumeLeclerc opened this issue Apr 29, 2016 · 1 comment
Open

ad_http_send_header write "(null)" as HTTPVER #24

GuillaumeLeclerc opened this issue Apr 29, 2016 · 1 comment

Comments

@GuillaumeLeclerc
Copy link
Contributor

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants