[asterisk-commits] lathama: trunk r305084 - /trunk/main/http.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 31 07:57:57 CST 2011


Author: lathama
Date: Mon Jan 31 07:57:53 2011
New Revision: 305084

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=305084
Log:
Asterisk HTTP response Content-type

Address content type for BSD and other platforms

(closes issue #18456)
Reported by: alexo
Patches:
    asterisk18_http.patch uploaded by alexo (license 1175)
Tested by: alexo


Modified:
    trunk/main/http.c

Modified: trunk/main/http.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/http.c?view=diff&rev=305084&r1=305083&r2=305084
==============================================================================
--- trunk/main/http.c (original)
+++ trunk/main/http.c Mon Jan 31 07:57:53 2011
@@ -110,6 +110,13 @@
 	{ "svg", "image/svg+xml" },
 	{ "svgz", "image/svg+xml" },
 	{ "gif", "image/gif" },
+	{ "html", "text/html" },
+	{ "htm", "text/html" },
+	{ "cnf", "text/plain" },
+	{ "cfg", "text/plain" },
+	{ "bin", "application/octet-stream" },
+	{ "sbn", "application/octet-stream" },
+	{ "ld", "application/octet-stream" },
 };
 
 struct http_uri_redirect {




More information about the asterisk-commits mailing list