diff --git a/controller.go b/controller.go index 0586bc62..8dabedd9 100644 --- a/controller.go +++ b/controller.go @@ -309,9 +309,6 @@ func (rc RestController) Patch(ctx Context) error { return err1 } - // Set prefer representation header as default - ctx.RequestContext().Request.Header.Add("Prefer", "return=representation") - return RestProxy(ctx, rc.TableName) } @@ -335,9 +332,6 @@ func (rc RestController) Post(ctx Context) error { return err1 } - // Set prefer representation header as default - ctx.RequestContext().Request.Header.Add("Prefer", "return=representation") - return RestProxy(ctx, rc.TableName) } @@ -353,9 +347,6 @@ func (rc RestController) Put(ctx Context) error { return err1 } - // Set prefer representation header as default - ctx.RequestContext().Request.Header.Add("Prefer", "return=representation") - return RestProxy(ctx, rc.TableName) }