Explorar el Código

Redirect / to code.as fork

master
Matt Baer hace 5 años
padre
commit
6a7fdcb493
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      main.go

+ 1
- 1
main.go Ver fichero

@@ -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
}


Cargando…
Cancelar
Guardar