From 9771dac9cb13d4455c86a943644a176f7ac1afa5 Mon Sep 17 00:00:00 2001 From: free will <2647778488@qq.com> Date: Mon, 28 Dec 2020 20:04:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83=E4=BA=86min-http=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=BA=A4=E4=BA=92=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- min/settings.properties | 8 ++++---- .../MiniMinData/MinHTTP/MINHTTP_RequestHandler.java | 10 +++++++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/min/settings.properties b/min/settings.properties index 759148e..060d41b 100644 --- a/min/settings.properties +++ b/min/settings.properties @@ -1,9 +1,9 @@ #\u4FEE\u6539\u914D\u7F6E\u6587\u4EF6 -#Tue Dec 22 20:15:22 CST 2020 -ServerIPAddress=219.223.196.164 +#Mon Dec 28 19:48:19 CST 2020 +ServerIPAddress=219.223.192.199 MIS_PORT=13899 DataPackagePrefix=/MIN/Nginx/test2 -ServerPortAddress=6363 ThreadNumberForFileTransfer=5 -DownloadFileDirectory=.\\filecache\\ +ServerPortAddress=6363 MIS_IP=121.15.171.91 +DownloadFileDirectory=.\\filecache\\ diff --git a/src/main/java/cn/minbrowser/MiniMinData/MinHTTP/MINHTTP_RequestHandler.java b/src/main/java/cn/minbrowser/MiniMinData/MinHTTP/MINHTTP_RequestHandler.java index 1b1c3c8..9b98016 100644 --- a/src/main/java/cn/minbrowser/MiniMinData/MinHTTP/MINHTTP_RequestHandler.java +++ b/src/main/java/cn/minbrowser/MiniMinData/MinHTTP/MINHTTP_RequestHandler.java @@ -114,6 +114,7 @@ public class MINHTTP_RequestHandler { Integer chunkNums=calcSliceNums(length,chunkSize); System.out.println("本次请求应答数据理应(服务器告诉我的)的总大小:"+length); this.responseData=new byte[Math.toIntExact(length)]; + int headLens=0; // MIN-HTTP头部字段的长度 for(int i=0;i