Skip to content

Commit

Permalink
Merge pull request #964 from NBISweden/955-delete-payload-fix
Browse files Browse the repository at this point in the history
Delete the request body when changing the method to "DELETE"
  • Loading branch information
kusalananda authored Aug 29, 2024
2 parents 22d2a52 + 27bcc2a commit 4f66975
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/api/postTimeEntriesHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func postTimeEntriesHandler(c *fiber.Ctx) error {
} else {
// Delete time entry.
method = fiber.MethodDelete
c.Request().SetBody([]byte{})
}
}

Expand Down

0 comments on commit 4f66975

Please sign in to comment.