]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Asterisk HTTP response Content-type
authorAndrew Latham <lathama@gmail.com>
Mon, 31 Jan 2011 13:56:05 +0000 (13:56 +0000)
committerAndrew Latham <lathama@gmail.com>
Mon, 31 Jan 2011 13:56:05 +0000 (13:56 +0000)
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

main/http.c

index a99d3b759f5ee14ec4b54785c6eb8a880b4c87f8..f3c64cc00d1d79b529ac91db04a9e8334992c901 100644 (file)
@@ -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 {