[asterisk-commits] russell: branch 1.4 r55634 -
/branches/1.4/main/http.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Feb 20 13:26:07 MST 2007
Author: russell
Date: Tue Feb 20 14:26:06 2007
New Revision: 55634
URL: http://svn.digium.com/view/asterisk?view=rev&rev=55634
Log:
Add the Asterisk version information to the Server header in HTTP
responses. (requested by Pari)
Modified:
branches/1.4/main/http.c
Modified: branches/1.4/main/http.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/http.c?view=diff&rev=55634&r1=55633&r2=55634
==============================================================================
--- branches/1.4/main/http.c (original)
+++ branches/1.4/main/http.c Tue Feb 20 14:26:06 2007
@@ -53,6 +53,7 @@
#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 @@
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) {
More information about the asterisk-commits
mailing list