Skip to content

Commit

Permalink
fixed headers for Micronaut HTTP client (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr authored Dec 5, 2023
1 parent 1fd9ecc commit 63b5829
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ HttpRequest<?> buildHttpRequest() {

builder.contentType(contentType);

headers.forEach((name, values) -> {
values.forEach(value -> builder.getHeaders().add(name, value));
});

cookies.forEach(c -> {
io.micronaut.http.cookie.Cookie cookie = io.micronaut.http.cookie.Cookie.of(c.getName(), c.getValue());
cookie.httpOnly(c.getHttpOnly());
Expand Down

0 comments on commit 63b5829

Please sign in to comment.