X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f3c89480b1f09c30708150f0733b2d430f4221da..926f71e8481d62a20ff66a834d876713df5fd0c7:/lib/controller/router/request.go diff --git a/lib/controller/router/request.go b/lib/controller/router/request.go index 39b4c51006..06141b1033 100644 --- a/lib/controller/router/request.go +++ b/lib/controller/router/request.go @@ -63,7 +63,11 @@ func guessAndParse(k, v string) (interface{}, error) { func (rtr *router) loadRequestParams(req *http.Request, attrsKey string) (map[string]interface{}, error) { err := req.ParseForm() if err != nil { - return nil, httpError(http.StatusBadRequest, err) + if err.Error() == "http: request body too large" { + return nil, httpError(http.StatusRequestEntityTooLarge, err) + } else { + return nil, httpError(http.StatusBadRequest, err) + } } params := map[string]interface{}{} @@ -169,6 +173,9 @@ var boolParams = map[string]bool{ "include_old_versions": true, "redirect_to_new_user": true, "send_notification_email": true, + "bypass_federation": true, + "recursive": true, + "exclude_home_project": true, } func stringToBool(s string) bool {