{"action":"created","issue":{"url":"https://api.github.com/repos/k3po/k3po/issues/306","repository_url":"https://api.github.com/repos/k3po/k3po","labels_url":"https://api.github.com/repos/k3po/k3po/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/k3po/k3po/issues/306/comments","events_url":"https://api.github.com/repos/k3po/k3po/issues/306/events","html_url":"https://github.com/k3po/k3po/issues/306","id":133911286,"number":306,"title":"read header using a regular expression containing a space does not work","user":{"login":"cmebarrow","id":3606936,"avatar_url":"https://avatars.githubusercontent.com/u/3606936?v=3","gravatar_id":"","url":"https://api.github.com/users/cmebarrow","html_url":"https://github.com/cmebarrow","followers_url":"https://api.github.com/users/cmebarrow/followers","following_url":"https://api.github.com/users/cmebarrow/following{/other_user}","gists_url":"https://api.github.com/users/cmebarrow/gists{/gist_id}","starred_url":"https://api.github.com/users/cmebarrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmebarrow/subscriptions","organizations_url":"https://api.github.com/users/cmebarrow/orgs","repos_url":"https://api.github.com/users/cmebarrow/repos","events_url":"https://api.github.com/users/cmebarrow/events{/privacy}","received_events_url":"https://api.github.com/users/cmebarrow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-16T08:02:44Z","updated_at":"2016-02-16T21:48:52Z","closed_at":null,"body":"To reproduce:\r\n\r\n- edit the wse specification script request.header.x.websocket.protocol/handshake.response to change the line `read header \"X-WebSocket-Protocol\" /primary,.*secondary/` to the following:\r\n```\r\nread header \"X-WebSocket-Protocol\" /primary, *secondary/\r\n```\r\n- run test OpeningIT.shouldEstablishConnectionWithRequestHeaderXWebSocketProtocol\r\n\r\nIt will fail claiming \"primary, secondary\" does not match the regex"},"comment":{"url":"https://api.github.com/repos/k3po/k3po/issues/comments/184888937","html_url":"https://github.com/k3po/k3po/issues/306#issuecomment-184888937","issue_url":"https://api.github.com/repos/k3po/k3po/issues/306","id":184888937,"user":{"login":"cmebarrow","id":3606936,"avatar_url":"https://avatars.githubusercontent.com/u/3606936?v=3","gravatar_id":"","url":"https://api.github.com/users/cmebarrow","html_url":"https://github.com/cmebarrow","followers_url":"https://api.github.com/users/cmebarrow/followers","following_url":"https://api.github.com/users/cmebarrow/following{/other_user}","gists_url":"https://api.github.com/users/cmebarrow/gists{/gist_id}","starred_url":"https://api.github.com/users/cmebarrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmebarrow/subscriptions","organizations_url":"https://api.github.com/users/cmebarrow/orgs","repos_url":"https://api.github.com/users/cmebarrow/repos","events_url":"https://api.github.com/users/cmebarrow/events{/privacy}","received_events_url":"https://api.github.com/users/cmebarrow/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T21:48:52Z","updated_at":"2016-02-16T21:48:52Z","body":"That works only if the header is formatted on the wire as multiply occurring:\r\n```\r\nX-WebSocket-Version: primary\\r\\n\r\nX-WebSocket-Version: secondary\\r\\n\r\n```\r\nIf it is combined on the wire:\r\n```\r\nX-WebSocket-Version: primary, secondary\\r\\n\r\n```\r\nthen the match (`read header \"X-WebSocket-Protocol\" \"primary\" \"secondary\"`) fails\r\n"}}