Revert bogus defer httputil.ReturnJson change.

Change-Id: I92f2bf63ba86e6829e697f28417e02e72f681245
This commit is contained in:
Brad Fitzpatrick 2011-07-01 11:19:54 -07:00
parent 68de472c53
commit 5ee34188f2
1 changed files with 1 additions and 2 deletions

View File

@ -88,8 +88,6 @@ func jsonMapList() []map[string]interface{} {
func (sh *Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
ret := jsonMap()
defer httputil.ReturnJson(rw, ret)
_ = req.Header.Get("X-PrefixHandler-PathBase")
suffix := req.Header.Get("X-PrefixHandler-PathSuffix")
@ -119,6 +117,7 @@ func (sh *Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
// TODO: discovery for the endpoints & better error message with link to discovery info
ret["error"] = "Unsupported search path or method"
ret["errorType"] = "input"
httputil.ReturnJson(rw, ret)
}
func (sh *Handler) serveRecentPermanodes(rw http.ResponseWriter, req *http.Request) {