Before this change, XhrTransport implementations had to be configured
with the headers to use for HTTP requests other than the initial
handshake.
After this change the handshake headers passed to SockJsClient by
default are used for all other HTTP requests related to the SockJS
connection (e.g. info request, xhr send/receive). A property on
SockJsClient allows restricting the headers to use for other HTTP
requests to a subset of the handshake headers.
Issue: SPR-13254
@ -53,11 +59,21 @@ public class XhrClientSockJsSession extends AbstractClientSockJsSession {
@@ -53,11 +59,21 @@ public class XhrClientSockJsSession extends AbstractClientSockJsSession {
super(request,handler,connectFuture);
Assert.notNull(transport,"'restTemplate' is required");
@ -100,7 +116,7 @@ public class XhrClientSockJsSession extends AbstractClientSockJsSession {
@@ -100,7 +116,7 @@ public class XhrClientSockJsSession extends AbstractClientSockJsSession {
@ -164,19 +166,36 @@ public abstract class AbstractSockJsIntegrationTests {
@@ -164,19 +166,36 @@ public abstract class AbstractSockJsIntegrationTests {
@ -246,14 +265,15 @@ public abstract class AbstractSockJsIntegrationTests {
@@ -246,14 +265,15 @@ public abstract class AbstractSockJsIntegrationTests {
@ -397,10 +417,13 @@ public abstract class AbstractSockJsIntegrationTests {
@@ -397,10 +417,13 @@ public abstract class AbstractSockJsIntegrationTests {