on master help sign in
Merge pull request #226 from haskell-servant/jkarni/octet-default

Document octet-stream default RFC.

commit81e08f31d19542c62b9b59b52cfef977d771c387 authorJulian Arni <jkarni@gmail.com> dateTue 15 Sep 2015, 17:36 (11 years ago) parentba918c72be6218
1 file changed+2−1
servant-server/src/Servant/Server/Internal.hs+2−1
servant-server/src/Servant/Server/Internal.hs+2−1
@@ -686,7 +686,8 @@ instance HasServer Raw where
686686-- that takes an argument of the type specified by 'ReqBody'.
687687-- The @Content-Type@ header is inspected, and the list provided is used to
688688-- attempt deserialization. If the request does not have a @Content-Type@
689−-- header, it is treated as @application/octet-stream@.
689+-- header, it is treated as @application/octet-stream@ (as specified in
690+-- <http://tools.ietf.org/html/rfc7231#section-3.1.1.5 RFC7231>.
690691-- This lets servant worry about extracting it from the request and turning
691692-- it into a value of the type you specify.
692693--