mirror of
https://github.com/certd/certd.git
synced 2026-05-01 02:17:27 +08:00
chore: 1
This commit is contained in:
@@ -241,6 +241,7 @@ token=md5(zhangsan + 5dh232kfg!* + 1554691950854)=cfcd208495d565ef66e7dff9f98764
|
||||
try {
|
||||
const contentType = headers['content-type'] || '';
|
||||
// 判断是否是 GB2312/GBK 编码
|
||||
//@ts-ignore
|
||||
if (contentType.includes('gb2312') || contentType.includes('gbk')) {
|
||||
// 使用 iconv-lite 解码
|
||||
data = iconv.decode(data, 'gb2312');
|
||||
|
||||
Reference in New Issue
Block a user