aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorlathama <lathama@f38db490-d61c-443f-a65b-d21fe96a405b>2011-01-31 13:52:33 +0000
committerlathama <lathama@f38db490-d61c-443f-a65b-d21fe96a405b>2011-01-31 13:52:33 +0000
commit6f82f539df7fd562c2b79d5d75b47f4c935613f6 (patch)
tree8bb7e9f7ab7f8b359664accb474d960cbe12ba5a /main
parent2b71e94f3bfe5f359873339b7c8a30caf66cf55e (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@305082 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/http.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/http.c b/main/http.c
index 02be41910..678de06cd 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 {