webmcp

view framework/env/request/register_mime_type.lua @ 564:6141ab127861

Fixed handling of derived translation tables
author jbe
date Sun Mar 07 17:21:12 2021 +0100 (6 weeks ago)
parents 56cb5ed5e692
children
line source
1 --[[--
2 request.register_mime_type(
3 filename_extension,
4 mime_type
5 )
7 Registers a mime type for a given filename extension (case sensitive).
9 --]]--
11 function request.register_mime_type(filename_extension, mime_type)
12 request.configure(function()
13 request._mime_types[filename_extension] = mime_type
14 end)
15 end

Impressum / About Us