Skip to content

Commit

Permalink
add nice redirect for badges site
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Jan 16, 2025
1 parent 26a3c01 commit b03c530
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/badges/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
loc, err := processUrlPath(r.URL.Path)
if err != nil {
w.WriteHeader(http.StatusBadRequest)
_, _ = w.Write([]byte("you be invalid"))
http.Redirect(w, r, "https://github.com/boyter/scc/?tab=readme-ov-file#badges-beta", http.StatusTemporaryRedirect)
return
}

Expand Down

0 comments on commit b03c530

Please sign in to comment.