Skip to content

Commit

Permalink
Fix device redirection issue in WSGI.cls
Browse files Browse the repository at this point in the history
  • Loading branch information
grongierisc committed Feb 19, 2024
1 parent be5f0ba commit 1cc49ce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/grongier/cls/Grongier/Service/WSGI.cls
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ ClassMethod Page(skipheader As %Boolean = 0) As %Status [ ProcedureBlock = 1 ]
Set %response.Domain = ..#DOMAIN
Do %response.MatchLanguage()

if ..#DEVMODE {
w %session.SessionId
}


#; Record if device re-direction is already active
Set tRedirected=##class(%Library.Device).ReDirectIO()
Expand Down Expand Up @@ -110,6 +108,11 @@ ClassMethod Page(skipheader As %Boolean = 0) As %Status [ ProcedureBlock = 1 ]
Do ##class(%Library.Device).ReDirectIO(1)
}

if ..#DEVMODE {
#; Close the device to ensure next request starts with a new process
Close 0
}

Quit $$$OK
}

Expand Down

0 comments on commit 1cc49ce

Please sign in to comment.