Include the current netdata version in the HTTP 'Server' header.
Mahlon E. Smith committed
Jan 1, 2018 at 20:49 UTC
609ff17a419cce728f361786c7efdfe615681611
1 file changed
+2
-1
src/web_client.c
+2
-1
@@ -1016,13 +1016,14 @@ static inline void web_client_send_http_header(struct web_client *w) {
1016
buffer_sprintf(w->response.header_output,
1017
"HTTP/1.1 %d %s\r\n"
1018
"Connection: %s\r\n"
1019
- "Server: NetData Embedded HTTP Server\r\n"
1019
+ "Server: NetData Embedded HTTP Server v%s\r\n"
1020
"Access-Control-Allow-Origin: %s\r\n"
1021
"Access-Control-Allow-Credentials: true\r\n"
1022
"Content-Type: %s\r\n"
1023
"Date: %s\r\n"
1024
, w->response.code, code_msg
1025
, web_client_has_keepalive(w)?"keep-alive":"close"
1026
+ , VERSION
1027
, w->origin
1028
, content_type_string
1029
, date