瀏覽代碼

Redirect / to code.as fork

master
Matt Baer 5 年之前
父節點
當前提交
6a7fdcb493
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      main.go

+ 1
- 1
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…
取消
儲存