Unify character encoding header code

This commit is contained in:
emanuele-f 2017-05-04 17:12:06 +02:00
parent 10be6c2190
commit 1c38df48c9
114 changed files with 127 additions and 119 deletions

View file

@ -103,6 +103,14 @@ end
-- ##############################################
function sendHTTPContentTypeHeader(content_type, content_disposition, charset)
local charset = charset or "iso-8859-1"
local mime = content_type.."; charset="..charset
sendHTTPHeader(mime, content_disposition)
end
-- ##############################################
function printGETParameters(get)
for key, value in pairs(get) do
io.write(key.."="..value.."\n")