Skip to content

Commit

Permalink
UI http handler- Propagate cookie in response
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunjeet committed Jun 13, 2023
1 parent 4011b2b commit 203046c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ public PrintWriter getWriter() throws IOException {

@Override
public void addCookie(Cookie c) {
Headers header = ex.getResponseHeaders();
header.add("Set-Cookie", c.getName() + "=" + c.getValue());
}

public void complete() throws IOException {
Expand Down

0 comments on commit 203046c

Please sign in to comment.