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

[master] httpd: X-Influxdb-Version header should be set on *all* responses #6756

Closed
mark-rushakoff opened this issue May 31, 2016 · 0 comments
Assignees
Milestone

Comments

@mark-rushakoff
Copy link
Contributor

To aid with troubleshooting, the X-Influxdb-Version header should be set on all responses, even for unhandled routes.

$ curl -G -vvv http://localhost:8086/ping # Has header set
*   Trying ::1...
* Connected to localhost (::1) port 8086 (#0)
> GET /ping HTTP/1.1
> Host: localhost:8086
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 204 No Content
< Request-Id: 50543231-2749-11e6-8002-000000000000
< X-Influxdb-Version: unknown
< Date: Tue, 31 May 2016 16:04:11 GMT
<
* Connection #0 to host localhost left intact

$ curl -G -vvv http://localhost:8086/asdf # Missing header
*   Trying ::1...
* Connected to localhost (::1) port 8086 (#0)
> GET /asdf HTTP/1.1
> Host: localhost:8086
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Tue, 31 May 2016 16:03:55 GMT
< Content-Length: 19
<
404 page not found
* 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

3 participants