on master help sign in
Document octet-stream default RFC.
commit2be621871d3bef5b2c08fac209dfdf8800f61bfc authorJulian K. Arni <jkarni@gmail.com> dateTue 15 Sep 2015, 17:21 (11 years ago) parentba918c7
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--