add md5 to http header
This commit is contained in:
@@ -411,6 +411,7 @@ local function _parse_upyun_option(option, extra, content)
|
||||
|
||||
if omd5 == "true" then
|
||||
extra["Content-MD5"] = md5(content)
|
||||
--extra["Content-MD5"] = "cca354111e1980bec172a68718976c8"
|
||||
end
|
||||
|
||||
if type(secret) == "string" then
|
||||
@@ -420,6 +421,8 @@ local function _parse_upyun_option(option, extra, content)
|
||||
if type(otype) == "string" then
|
||||
extra["Content-Type"] = otype
|
||||
end
|
||||
|
||||
--print('options...', extra["Content-MD5"])
|
||||
end
|
||||
|
||||
local function _parse_upyun_headers(headers, regex)
|
||||
|
||||
Reference in New Issue
Block a user