Fix second failing test
This commit is contained in:
parent
e159086201
commit
33112df237
|
@ -31,6 +31,7 @@ import org.springframework.web.socket.sockjs.transport.session.AbstractSockJsSes
|
||||||
import org.springframework.web.socket.sockjs.transport.session.PollingSockJsSession;
|
import org.springframework.web.socket.sockjs.transport.session.PollingSockJsSession;
|
||||||
import org.springframework.web.socket.sockjs.transport.session.StreamingSockJsSession;
|
import org.springframework.web.socket.sockjs.transport.session.StreamingSockJsSession;
|
||||||
import org.springframework.web.socket.sockjs.transport.session.StubSockJsServiceConfig;
|
import org.springframework.web.socket.sockjs.transport.session.StubSockJsServiceConfig;
|
||||||
|
import org.springframework.web.util.UriUtils;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertFalse;
|
import static org.junit.Assert.assertFalse;
|
||||||
|
@ -114,7 +115,7 @@ public class HttpSendingTransportHandlerTests extends AbstractHttpRequestTests
|
||||||
setRequest("POST", "/");
|
setRequest("POST", "/");
|
||||||
|
|
||||||
if (callbackValue != null) {
|
if (callbackValue != null) {
|
||||||
this.servletRequest.setQueryString("c=" + callbackValue);
|
this.servletRequest.setQueryString("c=" + UriUtils.encodeQueryParam(callbackValue, "UTF-8"));
|
||||||
this.servletRequest.addParameter("c", callbackValue);
|
this.servletRequest.addParameter("c", callbackValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue