From dd1e0c160555e50774395fa7350dd851c3146b05 Mon Sep 17 00:00:00 2001 From: tomeeo Date: Fri, 23 Jul 2021 17:04:59 -0400 Subject: [PATCH] [mod_http_cache] Fix the query string not included for HTTP PUT requests to s3 --- src/mod/applications/mod_http_cache/aws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_http_cache/aws.c b/src/mod/applications/mod_http_cache/aws.c index cc02b4e5b5..264756eda7 100644 --- a/src/mod/applications/mod_http_cache/aws.c +++ b/src/mod/applications/mod_http_cache/aws.c @@ -47,7 +47,7 @@ */ static char *hmac256(char* buffer, unsigned int buffer_length, const char* key, unsigned int key_length, const char* message) { - if (zstr(key) || zstr(message) || buffer_length < SHA256_DIGEST_LENGTH) { + if (!key || zstr(message) || buffer_length < SHA256_DIGEST_LENGTH) { return NULL; }