From 7c3d96f1db25024a562fb1d8044af5f95a8b0a8a Mon Sep 17 00:00:00 2001 From: AzenKain Date: Fri, 12 Jun 2026 12:36:43 +0700 Subject: [PATCH] fix: correct proxy response status and formatting, and add release configuration file --- main.go | 4 ++-- script/release.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index f8e439c..6309735 100644 --- a/main.go +++ b/main.go @@ -147,7 +147,7 @@ func main() { return req, goproxy.NewResponse( req, goproxy.ContentTypeText, - http.StatusOK, + http.StatusNotFound, "", ) } @@ -160,7 +160,7 @@ func main() { req, goproxy.ContentTypeText, http.StatusNotFound, - `{\n"message": "blocked by proxy",\n,"success": false,\n"retcode": -1\n}`, + `{"message": "blocked by proxy", "success": false, "retcode": -1}`, ) } full := req.URL.String() diff --git a/script/release.json b/script/release.json index eefbcfa..569c880 100644 --- a/script/release.json +++ b/script/release.json @@ -1,5 +1,5 @@ { - "tag": "1.3-02", - "title": "PreBuild Version 1.3 - 02" + "tag": "1.3-03", + "title": "PreBuild Version 1.3 - 03" } \ No newline at end of file