🚧 Map Response headers when proxy exception
This commit is contained in:
@@ -34,9 +34,16 @@ public class ResponseHandler
|
||||
{
|
||||
String headerName = header.getKey();
|
||||
for (String value : header.getValue())
|
||||
{
|
||||
try
|
||||
{
|
||||
context.response().putHeader(headerName, value);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// Empty
|
||||
}
|
||||
}
|
||||
}
|
||||
context.response().send(Buffer.buffer(body));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user