[asterisk-bugs] [Asterisk-GUI 0018456]: Asterisk HTTP response contains wrong Content-type

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Dec 10 13:43:54 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18456 
====================================================================== 
Reported By:                alexo
Assigned To:                
====================================================================== 
Project:                    Asterisk-GUI
Issue ID:                   18456
Category:                   General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk GUI Version:       2.0.4 
Asterisk Version:           1.8.1 
JIRA:                        
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2010-12-10 13:29 CST
Last Modified:              2010-12-10 13:43 CST
====================================================================== 
Summary:                    Asterisk HTTP response contains wrong Content-type
Description: 
Trying to access Asterisk GUI I'm getting page sources. Here is session
part, please note Content-type: (null) response:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /asterisk/static/config/index.html HTTP/1.0

HTTP/1.1 200 OK
Server: Asterisk/1.8.1
Date: Fri, 10 Dec 2010 19:25:28 GMT
Connection: close
Content-Length: 14418
Content-type: (null)
ETag: "1292009013"

====================================================================== 

---------------------------------------------------------------------- 
 (0129541) alexo (reporter) - 2010-12-10 13:43
 https://issues.asterisk.org/view.php?id=18456#c129541 
---------------------------------------------------------------------- 
Ok, that fix was simple. Just need to add missing mimetype to main/http.c:


--- main/http.c.orig    2010-12-10 19:43:27.417565731 +0000
+++ main/http.c 2010-12-10 19:35:29.087600148 +0000
@@ -108,6 +108,7 @@
        { "svg", "image/svg+xml" },
        { "svgz", "image/svg+xml" },
        { "gif", "image/gif" },
+       { "html", "text/html" },
 };
 
 struct http_uri_redirect { 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-12-10 13:43 alexo          Note Added: 0129541                          
======================================================================




More information about the asterisk-bugs mailing list