aboutsummaryrefslogtreecommitdiff
path: root/captain/gemini.f90
diff options
context:
space:
mode:
Diffstat (limited to 'captain/gemini.f90')
-rw-r--r--captain/gemini.f906
1 files changed, 6 insertions, 0 deletions
diff --git a/captain/gemini.f90 b/captain/gemini.f90
index b14078d..cb829e8 100644
--- a/captain/gemini.f90
+++ b/captain/gemini.f90
@@ -237,6 +237,8 @@ contains
character(1024)::text_request
character(UUID_LENGTH+8)::first
+
+ character(len=:), pointer::gemlink
integer::rendered_unit, ioerror
@@ -350,6 +352,10 @@ contains
call write_input_request(ssl, resp%message, code=resp%code)
case(GEMINI_CODE_REDIRECT)
+ if(req%is_authenticated_user()) then
+ gemlink => gemini_session_link_url(resp%url, req%token)
+ call resp%set_url(gemlink)
+ end if
call write_redirect(ssl, resp%url)
case(GEMINI_CODE_PERMFAIL)