From 6d3af1f8ff76f5a26646c8583234943aea29c905 Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Mon, 16 Jun 2014 13:21:53 -0700 Subject: [PATCH] Make success status public so it will actually get sent to clients --- pkg/apiserver/apiserver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/apiserver/apiserver.go b/pkg/apiserver/apiserver.go index 8da4c6e7be9..96373711b5d 100644 --- a/pkg/apiserver/apiserver.go +++ b/pkg/apiserver/apiserver.go @@ -38,7 +38,7 @@ type RESTStorage interface { // Status is a return value for calls that don't return other objects type Status struct { - success bool + Success bool } // ApiServer is an HTTPHandler that delegates to RESTStorage objects. @@ -195,7 +195,7 @@ func (server *ApiServer) handleREST(parts []string, url *url.URL, req *http.Requ server.error(err, w) return } - server.write(200, Status{success: true}, w) + server.write(200, Status{Success: true}, w) return case "PUT": if len(parts) != 2 {