If I use ExitStatus(http.StatusFound) I get a 500 and
plugin_servers/pb_rpc.lua:45: attempt to index local 'v' (a nil value)
If I use Exit(http.StatusFound, "", nil) everything is ok.
While inspecting the code, I would guess from the lua error, that the rpc call is missing some values.
IMHO I would just call Exit from ExitStatus with empty values for body and headers
Also setting the headers in Exit seems not to work - I had to use SetHeader to create a "working" 302.
If I use
ExitStatus(http.StatusFound)
I get a500
andIf I use
Exit(http.StatusFound, "", nil)
everything is ok.While inspecting the code, I would guess from the lua error, that the rpc call is missing some values. IMHO I would just call
Exit
fromExitStatus
with empty values forbody
andheaders
Also setting the headers in
Exit
seems not to work - I had to useSetHeader
to create a "working"302
.