Check if Authorization header is empty

This resolves s3-tests failures that we missed due to busted CI.
Perhaps caused by a newer boto version?
pull/377/head
Andrew Gaul 2021-09-08 20:37:04 +09:00
rodzic d18d0232c8
commit 4700fb3a69
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -369,7 +369,7 @@ public class S3ProxyHandler {
boolean presignedUrl = false;
if (!anonymousIdentity) {
if (headerAuthorization == null) {
if (Strings.isNullOrEmpty(headerAuthorization)) {
String algorithm = request.getParameter("X-Amz-Algorithm");
if (algorithm == null) { //v2 query
String identity = request.getParameter("AWSAccessKeyId");