Comparison

plugins/mod_httpserver.lua @ 2776:bdca5025fb46

mod_httpserver: Text files are text/plain, and not plain/text.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 10 Dec 2009 16:52:08 +0500
parent 2774:55ec6991c1a8
child 2785:08e0659ba1f2
comparison
equal deleted inserted replaced
2775:72b31799b0cb 2776:bdca5025fb46
21 local mime_map = { 21 local mime_map = {
22 html = "text/html"; 22 html = "text/html";
23 htm = "text/html"; 23 htm = "text/html";
24 xml = "text/xml"; 24 xml = "text/xml";
25 xsl = "text/xml"; 25 xsl = "text/xml";
26 txt = "plain/text; charset=utf-8"; 26 txt = "text/plain; charset=utf-8";
27 js = "text/javascript"; 27 js = "text/javascript";
28 css = "text/css"; 28 css = "text/css";
29 }; 29 };
30 30
31 local function preprocess_path(path) 31 local function preprocess_path(path)