mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added supporto for 4xx and 5xx returb codes in http_status_code.lua
This commit is contained in:
parent
ef4a357c4d
commit
97d456e020
2 changed files with 16 additions and 7 deletions
|
|
@ -280,11 +280,12 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function sendHTTPContentTypeHeader(content_type, content_disposition, charset)
|
||||
|
||||
function sendHTTPContentTypeHeader(content_type, content_disposition, charset, extra_headers, status_code)
|
||||
local charset = charset or "utf-8"
|
||||
local mime = content_type.."; charset="..charset
|
||||
sendHTTPHeader(mime, content_disposition)
|
||||
|
||||
tprint(status_code)
|
||||
sendHTTPHeader(mime, content_disposition, extra_headers, status_code)
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue