name parameter more correctly

This commit is contained in:
Vincent Breitmoser 2017-08-28 01:06:24 +02:00
parent 9c01929858
commit 46161efce6
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ import okio.ByteString;
class AutocryptHeader {
static final String AUTOCRYPT_HEADER = "Autocrypt";
static final String AUTOCRYPT_PARAM_TO = "addr";
static final String AUTOCRYPT_PARAM_ADDR = "addr";
static final String AUTOCRYPT_PARAM_KEY_DATA = "keydata";
static final String AUTOCRYPT_PARAM_TYPE = "type";
@ -46,7 +46,7 @@ class AutocryptHeader {
}
String autocryptHeaderString = AutocryptHeader.AUTOCRYPT_HEADER + ": ";
autocryptHeaderString += AutocryptHeader.AUTOCRYPT_PARAM_TO + "=" + addr + ";";
autocryptHeaderString += AutocryptHeader.AUTOCRYPT_PARAM_ADDR + "=" + addr + ";";
if (isPreferEncryptMutual) {
autocryptHeaderString += AutocryptHeader.AUTOCRYPT_PARAM_PREFER_ENCRYPT + "=" +
AutocryptHeader.AUTOCRYPT_PREFER_ENCRYPT_MUTUAL + ";";

View file

@ -57,7 +57,7 @@ class AutocryptHeaderParser {
return null;
}
String to = parameters.remove(AutocryptHeader.AUTOCRYPT_PARAM_TO);
String to = parameters.remove(AutocryptHeader.AUTOCRYPT_PARAM_ADDR);
if (to == null) {
Timber.e("autocrypt: no to header!");
return null;