root discovery: drop var, so things are on window.

Change-Id: Ib84203a1135d3254d1596d7d82ec1389f0a94475
This commit is contained in:
Brad Fitzpatrick 2012-12-23 14:19:14 -08:00
parent 8931c24e4c
commit 0cbf38b29a
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ func discoveryHelper(rw http.ResponseWriter, req *http.Request, m map[string]int
fmt.Fprintf(rw, "%s(", cb) fmt.Fprintf(rw, "%s(", cb)
defer rw.Write([]byte(");\n")) defer rw.Write([]byte(");\n"))
} else if v := req.FormValue("var"); identOrDotPattern.MatchString(v) { } else if v := req.FormValue("var"); identOrDotPattern.MatchString(v) {
fmt.Fprintf(rw, "var %s = ", v) fmt.Fprintf(rw, "%s = ", v)
defer rw.Write([]byte(";\n")) defer rw.Write([]byte(";\n"))
} }
bytes, _ := json.MarshalIndent(m, "", " ") bytes, _ := json.MarshalIndent(m, "", " ")