Skip to content

Commit 1cc49ce

Browse files
committed
Fix device redirection issue in WSGI.cls
1 parent be5f0ba commit 1cc49ce

File tree

1 file changed

+6
-3
lines changed
  • src/grongier/cls/Grongier/Service

1 file changed

+6
-3
lines changed

src/grongier/cls/Grongier/Service/WSGI.cls

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ ClassMethod Page(skipheader As %Boolean = 0) As %Status [ ProcedureBlock = 1 ]
3131
Set %response.Domain = ..#DOMAIN
3232
Do %response.MatchLanguage()
3333

34-
if ..#DEVMODE {
35-
w %session.SessionId
36-
}
34+
3735

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

111+
if ..#DEVMODE {
112+
#; Close the device to ensure next request starts with a new process
113+
Close 0
114+
}
115+
113116
Quit $$$OK
114117
}
115118

0 commit comments

Comments
 (0)