mirror of
https://github.com/lxsang/silk.git
synced 2024-12-26 21:08:22 +01:00
decode Multipart data
All checks were successful
gitea-sync/silk/pipeline/head This commit looks good
All checks were successful
gitea-sync/silk/pipeline/head This commit looks good
This commit is contained in:
parent
de2ede07e2
commit
6cd7406a6a
@ -199,6 +199,15 @@ if HEADER["Cookie"] then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- multipart request
|
||||||
|
REQUEST.multipart = {}
|
||||||
|
for key,val in pairs(_SERVER) do
|
||||||
|
local s,e,v = key:find("MULTIPART%[(.*)%]")
|
||||||
|
if s then
|
||||||
|
REQUEST.multipart[v] = val
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local code, error = decode_request_data()
|
local code, error = decode_request_data()
|
||||||
|
|
||||||
if code ~= 0 then
|
if code ~= 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user