mirror of https://github.com/perkeep/perkeep.git
Merge "camweb: Correct redirect URL for /gw/"
This commit is contained in:
commit
97ae2ba095
|
@ -189,7 +189,7 @@ func mainHandler(rw http.ResponseWriter, req *http.Request) {
|
||||||
|
|
||||||
if strings.HasPrefix(relPath, "gw/") {
|
if strings.HasPrefix(relPath, "gw/") {
|
||||||
path := relPath[3:]
|
path := relPath[3:]
|
||||||
http.Redirect(rw, req, "https://camlistore.googlesource.com/camlistore/+/HEAD/"+path, http.StatusFound)
|
http.Redirect(rw, req, "https://camlistore.googlesource.com/camlistore/+/"+path, http.StatusFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue