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