Rename variable
git-svn-id: file:///srv/svn/repo/toyohime/trunk@26 922d331f-388e-da47-97a9-ad700dc0b8b9
This commit is contained in:
parent
4208ecfe19
commit
949ad07b28
@ -54,7 +54,7 @@ func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
conf, ok := s.Config[Path(r.URL.Path)]
|
||||
pack, ok := s.Config[Path(r.URL.Path)]
|
||||
if !ok {
|
||||
http.NotFound(w, r)
|
||||
return
|
||||
@ -64,6 +64,6 @@ func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
http.Redirect(w, r, url, http.StatusTemporaryRedirect)
|
||||
return
|
||||
}
|
||||
i := fmt.Sprintf("%s%s %s %s", *s.Domain, conf.Path, conf.VCSSystem, conf.VCSURL)
|
||||
i := fmt.Sprintf("%s%s %s %s", *s.Domain, pack.Path, pack.VCSSystem, pack.VCSURL)
|
||||
fmt.Fprintf(w, `<meta name="go-import" content="%s">`, i)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user