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)) {
|
||||
return null;
|
||||
}
|
||||
if (HASH_ALGORITHM.equals(hash) && BaseEncoding.base64().canDecode(hash)) {
|
||||
return EntityCapabilities.EntityCapsHash.of(hash);
|
||||
if (HASH_ALGORITHM.equals(hash) && BaseEncoding.base64().canDecode(ver)) {
|
||||
return EntityCapabilities.EntityCapsHash.of(ver);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue