add md5 to http header

This commit is contained in:
XiaoLi
2023-07-23 21:38:56 +08:00
committed by XiaoLi
parent 632d53dbb9
commit 5be125956f
3 changed files with 29 additions and 2 deletions
+3
View File
@@ -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)