From d6aaafa9c3b5a48498d145b87c65a2b8eadc469d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 23 Jun 2011 17:36:42 +0200 Subject: [PATCH] Fix return code in RequestEntityTooLargeError Change-Id: Ic7fb562ba58e6807b4c2561d2a506ca02afa8c2b Signed-off-by: Julien Danjou --- lib/go/camli/httputil/httputil.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/go/camli/httputil/httputil.go b/lib/go/camli/httputil/httputil.go index 8928027fd..decafd347 100644 --- a/lib/go/camli/httputil/httputil.go +++ b/lib/go/camli/httputil/httputil.go @@ -42,9 +42,8 @@ func ForbiddenError(conn http.ResponseWriter, errorMessage string, args ...inter fmt.Fprintf(conn, "

Forbidden

") } -func RequestEntityTooLargeError(conn http.ResponseWriter, errorMessage string, args ...interface{}) { - conn.WriteHeader(http.StatusForbidden) - log.Printf("Request entity is too large: %s", fmt.Sprintf(errorMessage, args...)) +func RequestEntityTooLargeError(conn http.ResponseWriter) { + conn.WriteHeader(http.StatusRequestEntityTooLarge) fmt.Fprintf(conn, "

Request entity is too large

") }