From a99b302a54ce51417565864f8e2a4a0c98abc1c9 Mon Sep 17 00:00:00 2001 From: Taufan Adhitya Date: Mon, 14 Oct 2024 17:02:18 +0700 Subject: [PATCH] hotfix: remove return representation header --- controller.go | 9 --------- 1 file changed, 9 deletions(-) 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) }