From 4fdac81f4dc57847f791a8ce3a2ecdf659eb82fd Mon Sep 17 00:00:00 2001 From: Logan Allen Date: Mon, 25 Mar 2019 16:52:11 -0700 Subject: [PATCH] When no redirect parameter is supplied to login, returns a 200 not a 307 --- sys/vane/rver.hoon | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/sys/vane/rver.hoon b/sys/vane/rver.hoon index 0312dffe6..c879bfd57 100644 --- a/sys/vane/rver.hoon +++ b/sys/vane/rver.hoon @@ -854,16 +854,22 @@ %- crip "urbauth={}; Path=/; Max-Age=86400" :: - =/ new-location=@t - ?~ redirect=(get-header:http 'redirect' u.parsed) - '/' - u.redirect + ?~ redirect=(get-header:http 'redirect' u.parsed) + %- handle-response + :* %start + :- status-code=200 + ^= headers + :~ ['set-cookie' cookie-line] + == + data=~ + complete=%.y + == :: %- handle-response :* %start :- status-code=307 ^= headers - :~ ['location' new-location] + :~ ['location' u.redirect] ['set-cookie' cookie-line] == data=~