diff --git a/lib/resty/upload.lua b/lib/resty/upload.lua index 37da961..66dae98 100644 --- a/lib/resty/upload.lua +++ b/lib/resty/upload.lua @@ -5,7 +5,6 @@ local req_socket = ngx.req.socket local match = string.match local setmetatable = setmetatable -local type = type local ngx_var = ngx.var -- local print = print @@ -33,10 +32,6 @@ local function get_boundary() return nil end - if type(header) == "table" then - header = header[1] - end - local m = match(header, ";%s*boundary=\"([^\"]+)\"") if m then return m