From: Andrew Latham Date: Mon, 31 Jan 2011 13:56:05 +0000 (+0000) Subject: Asterisk HTTP response Content-type X-Git-Tag: 1.8.4-rc1~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32b998a78169bb05eb53dab860b421cd9a91707a;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@305083 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/http.c b/main/http.c index a99d3b759f..f3c64cc00d 100644 --- a/main/http.c +++ b/main/http.c @@ -108,6 +108,13 @@ static struct { { "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 {