Skip to content

Commit

Permalink
Update http requests checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaz492 committed Nov 20, 2024
1 parent c25cd47 commit 6a37698
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions dbg/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

var (
checkRequestsURLs = map[string]CheckURLStruct{
"https://api.feed-the-beast.com/": {
"https://api.feed-the-beast.com/v1": {
Method: "HEAD",
ValidateResponse: false,
ExpectedStatusCode: http.StatusNotFound,
Expand Down Expand Up @@ -62,30 +62,6 @@ var (
ExpectedStatusCode: http.StatusOK,
ExpectedReponse: "",
},
"https://api.modpacks.ch/public/api/ping": {
Method: "GET",
ValidateResponse: true,
ExpectedStatusCode: http.StatusOK,
ExpectedReponse: "{\"status\":\"success\",\"reply\":\"pong\"}",
},
"https://apps.modpacks.ch/modpacks/art/112/neotechx512.png": {
Method: "GET",
ValidateResponse: false,
ExpectedStatusCode: http.StatusOK,
ExpectedReponse: "",
},
"https://dist.creeper.host/modpacks/art/112/neotechx512.png": {
Method: "HEAD",
ValidateResponse: false,
ExpectedStatusCode: http.StatusOK,
ExpectedReponse: "",
},
"https://api.creeper.host/api/health": {
Method: "HEAD",
ValidateResponse: false,
ExpectedStatusCode: http.StatusOK,
ExpectedReponse: "",
},
"https://maven.creeperhost.net": {
Method: "HEAD",
ValidateResponse: false,
Expand Down

0 comments on commit 6a37698

Please sign in to comment.