mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Unify character encoding header code
This commit is contained in:
parent
10be6c2190
commit
1c38df48c9
114 changed files with 127 additions and 119 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue