Skip to content

Commit

Permalink
Delete the request body when changing the method to "DELETE"
Browse files Browse the repository at this point in the history
  • Loading branch information
kusalananda committed Aug 22, 2024
1 parent f3f0747 commit 27bcc2a
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 27bcc2a

Please sign in to comment.