There was an error while loading. Please reload this page.
1 parent af165dd commit f362f3dCopy full SHA for f362f3d
lib/resty/upload.lua
@@ -7,6 +7,7 @@ local match = string.match
7
local setmetatable = setmetatable
8
local get_headers = ngx.req.get_headers
9
local type = type
10
+local ngx_var = ngx.var
11
-- local print = print
12
13
@@ -27,7 +28,7 @@ local state_handlers
27
28
29
30
local function get_boundary()
- local header = get_headers()["content-type"]
31
+ local header = ngx_var.content_type
32
if not header then
33
return nil
34
end
0 commit comments