generated from gCubeCI/Pipeline-Docker-Template
Fix subrequest respose for legacy app too #3
|
@ -96,7 +96,7 @@ function enforce_legacy(r) {
|
|||
debug(context, "Redirecting...");
|
||||
r.return(reply.status, "https://" + r.headersIn.host + reply.headersOut["Location"])
|
||||
} else {
|
||||
r.return(reply.status, reply.responseText)
|
||||
r.return(reply.status, reply.responseBuffer)
|
||||
}
|
||||
}).catch(e => { error(context, "Error .... " + njs.dump(e)); context.request.return(e.message === "Unauthorized" ? 403 : 500) })
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue