-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set json template for DELETE requests
Setting expose to json will cause content-type internally for Pecan to be set to application/json. If this is not set Pecan will throw a NotAcceptable error if it cannot parse or understand what type of request it is. This does not affect the content-type in the response for DELETE calls.
- Loading branch information
1 parent
5eeb3f0
commit ba5d73d
Showing
2 changed files
with
34 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters