fix history body encoding

This commit is contained in:
wanghongenpin
2025-09-12 01:02:26 +08:00
parent 07ffeb8e0f
commit f899981d02
8 changed files with 45 additions and 49 deletions

View File

@@ -186,13 +186,13 @@ class Har {
if (request.contentType == ContentType.formData || request.contentType == ContentType.formUrl) {
return {
"mimeType": request.headers.contentType, // 请求体类型
"text": request.bodyAsString, // 请求体内容
"text": request.body == null ? null : String.fromCharCodes(request.body!), // 请求体内容
"params": [], // 请求体内容
};
}
return {
"mimeType": request.headers.contentType, // 请求体类型
"text": request.bodyAsString, // 请求体内容
"text": request.body == null ? null : String.fromCharCodes(request.body!), // 请求体内容
};
}

View File

@@ -21,5 +21,5 @@ int hexToInt(String hex) {
//int ---> hex
String intToHex(int i) {
return i.toRadixString(16).padLeft(2, '0').toUpperCase();
return i.toRadixString(16).padLeft(2, '0');
}