Fix cryptoVer constant name to CRYPTO_VER

Change-Id: I46c39f2eceb4d58e49bd6273b87711f35250ab5c
This commit is contained in:
Shawn Pearce 2016-11-14 14:52:46 -08:00 committed by David Pursehouse
parent 3b2248c5cf
commit 2685f4b101
1 changed files with 3 additions and 3 deletions

View File

@ -175,7 +175,7 @@ static class JetS3tV2 extends WalkEncryption {
// Size 16, see com.sun.crypto.provider.AESConstants.AES_BLOCK_SIZE
static final byte[] ZERO_AES_IV = new byte[16];
private static final String cryptoVer = VERSION;
private static final String CRYPTO_VER = VERSION;
private final String cryptoAlg;
@ -227,14 +227,14 @@ static class JetS3tV2 extends WalkEncryption {
@Override
void request(final HttpURLConnection u, final String prefix) {
u.setRequestProperty(prefix + JETS3T_CRYPTO_VER, cryptoVer);
u.setRequestProperty(prefix + JETS3T_CRYPTO_VER, CRYPTO_VER);
u.setRequestProperty(prefix + JETS3T_CRYPTO_ALG, cryptoAlg);
}
@Override
void validate(final HttpURLConnection u, final String prefix)
throws IOException {
validateImpl(u, prefix, cryptoVer, cryptoAlg);
validateImpl(u, prefix, CRYPTO_VER, cryptoAlg);
}
@Override