mirror of
https://github.com/czp3009/bilibili-api.git
synced 2026-08-13 22:43:29 +08:00
对 String 形态的 RSA public key 进行预处理时, 对 \n 使用 replaceAll 而不是原来的 replace
This commit is contained in:
@@ -98,7 +98,7 @@ public class BilibiliRESTAPI {
|
||||
keyEntity.getData().getKey()
|
||||
.replace("-----BEGIN PUBLIC KEY-----", "")
|
||||
.replace("-----END PUBLIC KEY-----", "")
|
||||
.replace("\n", "")
|
||||
.replaceAll("\n", "")
|
||||
.getBytes()
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user