fix hmac auth (#603)

This commit is contained in:
澄潭
2023-10-25 11:54:21 +08:00
committed by GitHub
parent b54a2e7387
commit 4e44e7a1bb
2 changed files with 33 additions and 0 deletions

View File

@@ -116,6 +116,9 @@ std::string getStringToSign() {
getRequestHeader(CA_SIGNATURE_HEADERS)->toString();
std::vector<std::string> header_arr;
for (const auto& header : absl::StrSplit(dynamic_check_headers, ",")) {
if (header.empty()) {
continue;
}
auto lower_header = absl::AsciiStrToLower(header);
if (lower_header == CA_SIGNATURE || lower_header == CA_SIGNATURE_HEADERS) {
continue;