[asterisk-dev] Re: [svn-commits] russell: branch 1.4 r55634 - /branches/1.4/main/http.c

Olle E Johansson oej at edvina.net
Wed Feb 21 02:29:09 MST 2007


Like in SIP, this has to be optional.

/O

20 feb 2007 kl. 21.26 skrev svn-commits at lists.digium.com:

> 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) {
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> svn-commits mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/svn-commits

---
* Olle E Johansson - oej at edvina.net
* Cell phone +46 70 593 68 51, Office +46 8 96 40 20, Sweden





More information about the asterisk-dev mailing list