kopia lustrzana https://github.com/gaul/s3proxy
rodzic
19897069b4
commit
6bb0250103
|
@ -612,8 +612,9 @@ public class S3ProxyHandler {
|
|||
}
|
||||
}
|
||||
|
||||
if (!constantTimeEquals(expectedSignature,
|
||||
authHeader.getSignature())) {
|
||||
// AWS does not check signatures with OPTIONS verb
|
||||
if (!method.equals("OPTIONS") && !constantTimeEquals(
|
||||
expectedSignature, authHeader.getSignature())) {
|
||||
throw new S3Exception(S3ErrorCode.SIGNATURE_DOES_NOT_MATCH);
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue