Pedantic comment revision
This commit is contained in:
parent
1953c8943b
commit
c6a08f0c4a
@ -107,8 +107,7 @@ array = J.Array . V.fromList . map J.toJSON
|
||||
-- | jsonOrRedirect simplifies the scenario where a POST handler sends a different
|
||||
-- response based on Accept headers:
|
||||
--
|
||||
-- 1. 200 with JSON data if the client prefers application/json (i.e. is an
|
||||
-- AJAX request)
|
||||
-- 1. 200 with JSON data if the client prefers application/json (e.g. AJAX).
|
||||
--
|
||||
-- 2. 3xx otherwise, following the PRG pattern.
|
||||
jsonOrRedirect :: (Yesod master, J.ToJSON a)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user