go.tools/dashboard: Fix incorrect parsing of log hash.
R=adg CC=golang-dev https://golang.org/cl/43000043
This commit is contained in:
parent
a02c76070b
commit
2cbda9de61
|
@ -335,7 +335,7 @@ func resultHandler(r *http.Request) (interface{}, error) {
|
||||||
func logHandler(w http.ResponseWriter, r *http.Request) {
|
func logHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Content-type", "text/plain; charset=utf-8")
|
w.Header().Set("Content-type", "text/plain; charset=utf-8")
|
||||||
c := contextForRequest(r)
|
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)
|
key := datastore.NewKey(c, "Log", hash, 0, nil)
|
||||||
l := new(Log)
|
l := new(Log)
|
||||||
if err := datastore.Get(c, key, l); err != nil {
|
if err := datastore.Get(c, key, l); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue