Fix to handle binary responses from the upstream server

This commit is contained in:
Antonio Calanducci 2024-10-18 11:39:51 +02:00
parent 37b9e1f8f3
commit 41fa1d9df2
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ function respondToClient(context) {
for (let k in context.backendresponse.headersOut) {
context.request.headersOut[k] = context.backendresponse.headersOut[k]
}
context.request.return(context.backendresponse.status, context.backendresponse.responseText)
context.request.return(context.backendresponse.status, context.backendresponse.responseBuffer)
return context
}