generated from gCubeCI/Pipeline-Docker-Template
Merge pull request 'Fix subrequest respose for legacy app too' (!3) from antonio.calanducci/pep-container-image:master into master
Reviewed-on: #3
This commit is contained in:
commit
60777b4f57
|
@ -96,7 +96,7 @@ function enforce_legacy(r) {
|
||||||
debug(context, "Redirecting...");
|
debug(context, "Redirecting...");
|
||||||
r.return(reply.status, "https://" + r.headersIn.host + reply.headersOut["Location"])
|
r.return(reply.status, "https://" + r.headersIn.host + reply.headersOut["Location"])
|
||||||
} else {
|
} 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) })
|
}).catch(e => { error(context, "Error .... " + njs.dump(e)); context.request.return(e.message === "Unauthorized" ? 403 : 500) })
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue