From d0bcec70a62dcc54dd46546d973dc584a85ba407 Mon Sep 17 00:00:00 2001 From: russell Date: Tue, 20 Feb 2007 20:26:06 +0000 Subject: Add the Asterisk version information to the Server header in HTTP responses. (requested by Pari) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@55634 f38db490-d61c-443f-a65b-d21fe96a405b --- main/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main/http.c') diff --git a/main/http.c b/main/http.c index 80841a223..3f8f747ac 100644 --- a/main/http.c +++ b/main/http.c @@ -53,6 +53,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/strings.h" #include "asterisk/options.h" #include "asterisk/config.h" +#include "asterisk/version.h" #define MAX_PREFIX 80 #define DEFAULT_PREFIX "/asterisk" @@ -477,7 +478,7 @@ static void *ast_httpd_helper_thread(void *data) time(&t); strftime(timebuf, sizeof(timebuf), "%a, %d %b %Y %H:%M:%S GMT", gmtime(&t)); ast_cli(ser->fd, "HTTP/1.1 %d %s\r\n", status, title ? title : "OK"); - ast_cli(ser->fd, "Server: Asterisk\r\n"); + ast_cli(ser->fd, "Server: Asterisk/%s\r\n", ASTERISK_VERSION); ast_cli(ser->fd, "Date: %s\r\n", timebuf); ast_cli(ser->fd, "Connection: close\r\n"); if (contentlength) { -- cgit v1.2.3