Redirect / to code.as fork
This commit is contained in:
parent
482a86ec75
commit
6a7fdcb493
2
main.go
2
main.go
@ -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…
Reference in New Issue
Block a user