From: Andrew Latham Date: Mon, 31 Jan 2011 13:52:33 +0000 (+0000) Subject: Asterisk HTTP response Content-type X-Git-Tag: 1.6.2.18-rc1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2afe6299a54337c35bd8f493f46001db7086fcf;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.6.2@305082 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/http.c b/main/http.c index 02be419109..678de06cdd 100644 --- a/main/http.c +++ b/main/http.c @@ -98,6 +98,7 @@ static struct { const char *mtype; } mimetypes[] = { { "png", "image/png" }, + { "xml", "text/xml" }, { "jpg", "image/jpeg" }, { "js", "application/x-javascript" }, { "wav", "audio/x-wav" }, @@ -105,6 +106,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 {