fix: correct proxy response status and formatting, and add release configuration file
Build and Release / release (push) Successful in 1m35s
Build and Release / release (push) Successful in 1m35s
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user