go.tools/dashboard: Fix incorrect parsing of log hash.

R=adg
CC=golang-dev
https://golang.org/cl/43000043
This commit is contained in:
Chris Manghane 2013-12-16 14:50:09 -08:00
parent a02c76070b
commit 2cbda9de61
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ func resultHandler(r *http.Request) (interface{}, error) {
func logHandler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-type", "text/plain; charset=utf-8")
c := contextForRequest(r)
hash := r.URL.Path[len("/log/"):]
hash := r.URL.Path[strings.LastIndex(r.URL.Path, "/")+1:]
key := datastore.NewKey(c, "Log", hash, 0, nil)
l := new(Log)
if err := datastore.Get(c, key, l); err != nil {