name parameter more correctly
This commit is contained in:
parent
9c01929858
commit
46161efce6
2 changed files with 3 additions and 3 deletions
|
@ -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 + ";";
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue