Skip to content

Commit

Permalink
Merge pull request #79 from sev-2/hotfix/remove-return-representation…
Browse files Browse the repository at this point in the history
…-header

hotfix: remove return representation header
  • Loading branch information
toopay authored Oct 14, 2024
2 parents 1516ea6 + a99b302 commit ad3d752
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 ad3d752

Please sign in to comment.