Client connects with a header of exactly "accept-version" => "1.0" (and a proper "host" header)
The server is a 1.0 only server (e.g. AMQ)
The server ignores unknown CONNECT headers and returns a CONNECTED frame
The server does not return any STOMP 1.1 headers (expected server behavior for 1.0), specifically a "version" header
A Stomp::Error::UnsupportedProtocolError is raised
This is erroneous behavior. The STOMP client should:
Accept this connection as a "1.0" connection
Set the 'protocol' variable appropriately
Continue with normal operation
Note: if the client connects with a more complex header like: "accept-version" => "1.1, 3.14159, 1.0" , where "1.0" is a listed option, the connection should proceed without error as described above.
Note: if "1.0" is not listed in the "accept-version" header, the Stomp::Error::UnsupportedProtocolError should continue to be raised.
Current Scenario:
This is erroneous behavior. The STOMP client should:
Note: if the client connects with a more complex header like: "accept-version" => "1.1, 3.14159, 1.0" , where "1.0" is a listed option, the connection should proceed without error as described above.
Note: if "1.0" is not listed in the "accept-version" header, the Stomp::Error::UnsupportedProtocolError should continue to be raised.