From 2944339893964ea33faa5b3b903d2c9ee4784bd7 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Thu, 10 Oct 2013 08:43:49 -0700 Subject: [PATCH] Fixing websocket browser test utility header lookup --- .../websocket/jsr356/server/browser/JsrBrowserConfigurator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-websocket/javax-websocket-server-impl/src/test/java/org/eclipse/jetty/websocket/jsr356/server/browser/JsrBrowserConfigurator.java b/jetty-websocket/javax-websocket-server-impl/src/test/java/org/eclipse/jetty/websocket/jsr356/server/browser/JsrBrowserConfigurator.java index 0c5be547dca..56892b6fb42 100644 --- a/jetty-websocket/javax-websocket-server-impl/src/test/java/org/eclipse/jetty/websocket/jsr356/server/browser/JsrBrowserConfigurator.java +++ b/jetty-websocket/javax-websocket-server-impl/src/test/java/org/eclipse/jetty/websocket/jsr356/server/browser/JsrBrowserConfigurator.java @@ -40,7 +40,7 @@ public class JsrBrowserConfigurator extends ServerEndpointConfig.Configurator private String getHeaderValue(HandshakeRequest request, String key) { - List value = request.getHeaders().get("User-Agent"); + List value = request.getHeaders().get(key); return QuoteUtil.join(value,","); }