From b21e64637f814b92680f230051d4c7b4ead3b7f4 Mon Sep 17 00:00:00 2001 From: Mark Wotton Date: Mon, 21 Mar 2016 17:21:14 -0400 Subject: [PATCH] documentation fixes #2 --- yesod-test/Yesod/Test.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yesod-test/Yesod/Test.hs b/yesod-test/Yesod/Test.hs index 928320cf..9a689349 100644 --- a/yesod-test/Yesod/Test.hs +++ b/yesod-test/Yesod/Test.hs @@ -695,7 +695,9 @@ get url = request $ do setUrl url -- | Follow a redirect, if the last response was a redirect. --- | (We consider 301, 302, 303, 307 and 308 as redirects.) +-- | (We consider a request a redirect if the status is +-- | 301, 302, 303, 307 or 308, and the Location header is set.) +-- | -- | Return Left with an error message if not a redirect -- | Return Right with the redirected URL if it was. --