Skip to content

Commit b03c530

Browse files
committed
add nice redirect for badges site
1 parent 26a3c01 commit b03c530

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/badges/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ func main() {
5555
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
5656
loc, err := processUrlPath(r.URL.Path)
5757
if err != nil {
58-
w.WriteHeader(http.StatusBadRequest)
59-
_, _ = w.Write([]byte("you be invalid"))
58+
http.Redirect(w, r, "https://github.com/boyter/scc/?tab=readme-ov-file#badges-beta", http.StatusTemporaryRedirect)
6059
return
6160
}
6261

0 commit comments

Comments
 (0)