fix parsing error in Legacy caps
This commit is contained in:
parent
09db9e574b
commit
90e613f94e
|
@ -26,8 +26,8 @@ public class LegacyCapabilities extends Extension {
|
||||||
if (Strings.isNullOrEmpty(ver) || Strings.isNullOrEmpty(hash)) {
|
if (Strings.isNullOrEmpty(ver) || Strings.isNullOrEmpty(hash)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (HASH_ALGORITHM.equals(hash) && BaseEncoding.base64().canDecode(hash)) {
|
if (HASH_ALGORITHM.equals(hash) && BaseEncoding.base64().canDecode(ver)) {
|
||||||
return EntityCapabilities.EntityCapsHash.of(hash);
|
return EntityCapabilities.EntityCapsHash.of(ver);
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue