generated from gCubeCI/Pipeline-Docker-Template
Fix to handle binary responses from the upstream server
This commit is contained in:
parent
37b9e1f8f3
commit
41fa1d9df2
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue