Skip to content

Commit

Permalink
hotfix: remove return representation header
Browse files Browse the repository at this point in the history
  • Loading branch information
toopay committed Oct 14, 2024
1 parent 1516ea6 commit a99b302
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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)
}

Expand All @@ -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)
}

Expand Down

0 comments on commit a99b302

Please sign in to comment.