fix GHSA-6g9p-wv47-4fxq

This commit is contained in:
Deng Ming
2024-04-25 16:54:02 +08:00
committed by Ming Deng
parent 5a366cd62b
commit 8f89e12e6c
2 changed files with 19 additions and 15 deletions

View File

@@ -13,7 +13,7 @@ func request(project *LogProject, method, uri string, headers map[string]string,
// The caller should provide 'x-sls-bodyrawsize' header
if _, ok := headers["x-sls-bodyrawsize"]; !ok {
err = fmt.Errorf("Can't find 'x-sls-bodyrawsize' header")
err = fmt.Errorf("can't find 'x-sls-bodyrawsize' header")
return
}
@@ -27,7 +27,7 @@ func request(project *LogProject, method, uri string, headers map[string]string,
headers["Content-MD5"] = bodyMD5
if _, ok := headers["Content-Type"]; !ok {
err = fmt.Errorf("Can't find 'Content-Type' header")
err = fmt.Errorf("can't find 'Content-Type' header")
return
}
}