Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Bordet2014-02-03 11:49:58 +0000
committerSimone Bordet2014-02-03 11:49:58 +0000
commitcfe248c67beea260f21a73bca019e3241f2cf11d (patch)
treeb8a1bed9f5ba3e0adcd6d73e97194d14b11e2f10 /jetty-websocket/websocket-api/src
parent5e3c8821bb3ac838903cefac80080c404ac647e8 (diff)
downloadorg.eclipse.jetty.project-cfe248c67beea260f21a73bca019e3241f2cf11d.tar.gz
org.eclipse.jetty.project-cfe248c67beea260f21a73bca019e3241f2cf11d.tar.xz
org.eclipse.jetty.project-cfe248c67beea260f21a73bca019e3241f2cf11d.zip
427128 - Cookies are not sent to the server.
Implemented/fixed handling of cookies sent by client to server.
Diffstat (limited to 'jetty-websocket/websocket-api/src')
-rw-r--r--jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/UpgradeRequest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/UpgradeRequest.java b/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/UpgradeRequest.java
index bbbe21f7b1..c76dd5419a 100644
--- a/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/UpgradeRequest.java
+++ b/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/UpgradeRequest.java
@@ -262,7 +262,8 @@ public class UpgradeRequest
public void setCookies(List<HttpCookie> cookies)
{
- this.cookies = cookies;
+ this.cookies.clear();
+ this.cookies.addAll(cookies);
}
public void setExtensions(List<ExtensionConfig> configs)

Back to the top