From d98d63358eb7ab43959ab144bb864cbe079df545 Mon Sep 17 00:00:00 2001 From: Antonio Calanducci Date: Fri, 18 Oct 2024 17:40:34 +0200 Subject: [PATCH] Fix subrequest respose for legacy app too --- src/pep.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pep.js b/src/pep.js index 7d8dedc..bdbb7c9 100644 --- a/src/pep.js +++ b/src/pep.js @@ -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 -- 2.17.1