-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Clients can not send urlencoded/multipart requests. BREAKING CHANGE: this means that eg an appengine request on the endpoint `interface_values_path POST /v1/:realm_name/devices/:device_id/interfaces/:interface/*path_token` which previously _could_ be successful with an urlencoded body of `data=2` will not be successful anymore. 2. Remove `pass: ["*/*"]` From the [Plug.Parsers documentation](https://hexdocs.pm/plug/Plug.Parsers.html), "This plug will raise Plug.Parsers.UnsupportedMediaTypeError by default if the request cannot be parsed by any of the given types and the MIME type has not been explicitly accepted with the :pass option". I believe this to be the desired behavior, as the application should return error code 415 if it is not parsable by one of the specified parsers. Signed-off-by: Francesco Noacco <francesco.noacco@secomind.com>
- Loading branch information
Showing
5 changed files
with
11 additions
and
12 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
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
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