Fix reversed arguments to String.indexOf

Found via goofys tests.  References #24.
pull/114/head
Andrew Gaul 2016-01-09 13:06:12 -08:00
rodzic 9fffac5eea
commit c0d7cce353
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -103,7 +103,7 @@ final class S3AuthorizationHeader {
throw new IllegalArgumentException("Invalid signature");
}
signatureIndex += SIGNATURE_FIELD.length();
int signatureEnd = header.indexOf(signatureIndex, ',');
int signatureEnd = header.indexOf(',', signatureIndex);
if (signatureEnd < 0) {
return header.substring(signatureIndex);
} else {