Browse Source

Redirect / to code.as fork

master
Matt Baer 5 years ago
parent
commit
6a7fdcb493
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      main.go

+ 1
- 1
main.go View File

@@ -248,7 +248,7 @@ func handler(resp http.ResponseWriter, req *http.Request) {
log.Printf("%s requested %s", req.RemoteAddr, req.URL)

if req.URL.Path == "/" {
resp.Header().Set("Location", "http://labix.org/gopkg.in")
resp.Header().Set("Location", "https://code.as/abunchtell/gopkg")
resp.WriteHeader(http.StatusTemporaryRedirect)
return
}


Loading…
Cancel
Save