on master help sign in
Merge pull request #612 from prophile/method-override-middleware-docstring

Tidy up docstring of `MethodOverride` middleware

commit706cf5acb4cb690b6f470f0c999a9a11f927a83b authorMichael Snoyman <michael@snoyman.com> dateMon 20 Feb 2017, 09:22 (10 years ago) parent7b177eebe91bc6
1 file changed+4−5
wai-extra/Network/Wai/Middleware/MethodOverride.hs+4−5
wai-extra/Network/Wai/Middleware/MethodOverride.hs+4−5
@@ -5,12 +5,11 @@ module Network.Wai.Middleware.MethodOverride
55import Network.Wai
66import Control.Monad (join)
77
8−-- | Allows overriding of the HTTP request method via the _method query string
9−-- parameter.
8+-- | Overriding of HTTP request method via `_method` query string parameter.
109--
11−-- This middleware only applies when the initial request method is POST. This
12−-- allow submitting of normal HTML forms, without worries of semantics
13−-- mismatches in the HTTP spec.
10+-- This middleware only applies when the initial request method is POST.
11+-- Allows submitting of normal HTML forms, without worries of semantic
12+-- mismatches with the HTTP spec.
1413methodOverride :: Middleware
1514methodOverride app req =
1615 app req'