Skip to content

Commit

Permalink
feat: always return representation after write operation
Browse files Browse the repository at this point in the history
  • Loading branch information
toopay committed Oct 8, 2024
1 parent a824f2e commit fb13e4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,9 @@ func (rc RestController) Put(ctx Context) error {
return err1
}

// Set prefer representation header as default
ctx.RequestContext().Request.Header.Add("Prefer", "return=representation")

Check warning on line 357 in controller.go

View check run for this annotation

Codecov / codecov/patch

controller.go#L357

Added line #L357 was not covered by tests

return RestProxy(ctx, rc.TableName)
}

Expand Down

0 comments on commit fb13e4b

Please sign in to comment.