webmcp
changeset 346:b5c8a6ed53d4
Bugfix regarding MIME types for static file delivery
author | jbe |
---|---|
date | Thu Mar 26 02:58:36 2015 +0100 (2015-03-26) |
parents | 546ec50e7170 |
children | 169dfbd0246a |
files | framework/env/request/__init.lua |
line diff
1.1 --- a/framework/env/request/__init.lua Thu Mar 26 02:16:26 2015 +0100 1.2 +++ b/framework/env/request/__init.lua Thu Mar 26 02:58:36 2015 +0100 1.3 @@ -2,16 +2,16 @@ 1.4 request._in_progress = false 1.5 1.6 request._mime_types = { 1.7 - "html", "text/html", 1.8 - "css", "text/css", 1.9 - "js", "application/javascript", 1.10 - "png", "image/png", 1.11 - "jpeg", "image/jpeg", 1.12 - "jpg", "image/jpeg", 1.13 - "gif", "image/gif", 1.14 - "svg", "image/svg+xml", 1.15 - "pdf", "application/pdf", 1.16 - "txt", "text/plain" 1.17 + html = "text/html", 1.18 + css = "text/css", 1.19 + js = "application/javascript", 1.20 + png = "image/png", 1.21 + jpeg = "image/jpeg", 1.22 + jpg = "image/jpeg", 1.23 + gif = "image/gif", 1.24 + svg = "image/svg+xml", 1.25 + pdf = "application/pdf", 1.26 + txt = "text/plain" 1.27 } 1.28 1.29 request.for_each(function()