This commit is contained in:
SearchNull
2021-12-29 10:41:18 +08:00
parent 31f6f12160
commit 3053994b06

View File

@@ -155,7 +155,7 @@ public class HttpUtil {
} }
// 处理请求头 // 处理请求头
if (line.split(":").length >= 2) { if (!httpBody && line.split(":").length >= 2) {
key = line.substring(0, line.indexOf(":") - 1).trim(); key = line.substring(0, line.indexOf(":") - 1).trim();
value = line.substring(line.indexOf(":") + 1).trim(); value = line.substring(line.indexOf(":") + 1).trim();
headers.put(key, value); headers.put(key, value);