[TYRUS-207] ClientEndpointConfig.Configurator#beforeRequest passes only first value of list<String> in headers to server endpoint Created: 02/Jul/13  Updated: 03/Jul/13  Resolved: 03/Jul/13

Status: Resolved
Project: tyrus
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 1.2

Type: Bug Priority: Major
Reporter: jan.supol Assignee: Pavel Bucek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

public class ClientConfigurator extends Configurator {
	public void beforeRequest(Map<String, List<String>> headers) {
          headers.put("aKey", Arrays.asList("header1", "header2", "header3");
@ServerEndpoint(value = "/echo", configurator = EchoConfigurator.class)
public class WSCEchoServer {
public class EchoConfigurator extends Configurator {
	public void modifyHandshake(ServerEndpointConfig sec,
			HandshakeRequest request, HandshakeResponse response) {
		Map<String, List<String>> map = request.getHeaders();
                //map contains only pair [key,firstValue]=["aKey","header1"]

Comment by jan.supol [ 02/Jul/13 ]

The same is on server side, when put a list on server, the client gets only first value

Comment by Pavel Bucek [ 03/Jul/13 ]

fixed in the trunk, rev 706

Generated at Mon Jul 06 05:18:36 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.