From 83e34b84faed3b286eb20d8fd3352ae7bc08a4f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=84=E5=A5=9A=E6=A2=A6=E7=81=B5?= Date: Mon, 23 Jun 2025 20:45:34 +0800 Subject: [PATCH] Update Plain Craft Launcher 2/Modules/Base/ModNet.vb Co-authored-by: tangge233 <50769997+tangge233@users.noreply.github.com> --- Plain Craft Launcher 2/Modules/Base/ModNet.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plain Craft Launcher 2/Modules/Base/ModNet.vb b/Plain Craft Launcher 2/Modules/Base/ModNet.vb index 9a8f190..f7d1b3c 100644 --- a/Plain Craft Launcher 2/Modules/Base/ModNet.vb +++ b/Plain Craft Launcher 2/Modules/Base/ModNet.vb @@ -1212,7 +1212,7 @@ StartThread: HttpRequest = Request.GetRequestMessage(Info.Source.Url, RequireHeaderSign:=True) '可能出现结束减去起始等于或者小于 0 的情况,导致下载抛出 ArgumentOutOfRangeException - If Not Info.DownloadEnd - Info.DownloadEnd <= 0 Then HttpRequest.Headers.Range = New RangeHeaderValue(Info.DownloadStart, Info.DownloadEnd) + If Not Info.IsFirstThread Then HttpRequest.Headers.Range = New RangeHeaderValue(Info.DownloadStart, Nothing) HttpResponse = Request.SendRequest(HttpRequest, False, Timeout:=Timeout, RequireReturnRespObj:=True) Dim ContentLength As Long = 0 Using HttpResponse