Skip to content

Commit

Permalink
Add a few mojang urls to the url checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaz492 committed Aug 7, 2024
1 parent e4c1796 commit 0af97b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ var (
ExpectedStatusCode: http.StatusOK,
ExpectedReponse: "",
},
"https://piston-meta.mojang.com/mc/game/version_manifest_v2.json": {
Method: "GET",
ValidateResponse: false,
ExpectedStatusCode: http.StatusOK,
ExpectedReponse: "",
},
"https://launchermeta.mojang.com/mc/game/version_manifest_v2.json": {
Method: "GET",
ValidateResponse: false,
ExpectedStatusCode: http.StatusOK,
ExpectedReponse: "",
},
"https://maven.fabricmc.net": {
Method: "HEAD",
ValidateResponse: false,
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func main() {
} else if !n.Success && !n.Error {
pterm.Warning.Println(n.Status)
} else {
pterm.Success.Println(n.Status)
pterm.Success.Printfln("%s: %s", n.URL, n.Status)
}
}

Expand Down

0 comments on commit 0af97b9

Please sign in to comment.