Skip to content

Commit

Permalink
Fix message headers that weren't set in the http response headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
luankevinferreira committed Feb 1, 2024
1 parent f0037f8 commit 3c40c94
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public void handle(RoutingContext routingContext) {
if (op.getStatusMessage() != null)
response.setStatusMessage(op.getStatusMessage());
if (op.getHeaders() != null)
op.getHeaders().forEach(h -> response.putHeader(h.getKey(), h.getValue()));
response.headers().addAll(op.getHeaders());
if (res.result().headers() != null)
response.headers().addAll(res.result().headers());
if (op.getPayload() != null)
response.end(op.getPayload());
else
Expand Down

0 comments on commit 3c40c94

Please sign in to comment.