Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit f01ceed527defae2fdf499d0d071ce5590ad0910
- Author: muttley <[email protected]>
- Date: Mon Oct 13 11:49:02 2014 +0200
- WebServer serves .json, .manifest and .appacache file
- diff --git a/src/webserver/src/WebServer.cpp b/src/webserver/src/WebServer.cpp
- index 4226034..727d18a 100644
- --- a/src/webserver/src/WebServer.cpp
- +++ b/src/webserver/src/WebServer.cpp
- @@ -1915,6 +1915,13 @@ void CScriptWebServer::ProcessURL(ThreadData Data)
- || req_file.EndsWith(wxT(".xsl"))) {
- session->m_vars["content_type"] = "text/xml";
- httpOut = ProcessHtmlRequest(unicode2char(req_file), httpOutLen);
- + } else if ( req_file.EndsWith(wxT(".appcache"))
- + || req_file.EndsWith(wxT(".manifest"))) {
- + session->m_vars["content_type"] = "text/cache-manifest";
- + httpOut = ProcessHtmlRequest(unicode2char(req_file), httpOutLen);
- + } else if (req_file.EndsWith(wxT(".json"))) {
- + session->m_vars["content_type"] = "application/json";
- + httpOut = ProcessHtmlRequest(unicode2char(req_file), httpOutLen);
- } else {
- httpOut = GetErrorPage("aMuleweb doesn't handle the requested file type ", httpOutLen);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement