mirror of
https://github.com/wanghongenpin/proxypin.git
synced 2026-05-20 16:15:47 +08:00
fix history body encoding
This commit is contained in:
@@ -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!), // 请求体内容
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user