Closed chirino closed 12 years ago
In this case we should use SHOULD not MUST. It is recommended, but there may be valid reasons not to have it be identical.
Ok so here is what I propose.
The MESSAGE frame MUST include a destination header indicating the destination the message was sent to. If the message has been sent using STOMP, this destination header SHOULD be identical to the one used in the corresponding SEND frame.
hopefully fixed by commit 0149d0b
The 1.1 spec contains:
The MESSAGE frame MUST include a destination header indicating the destination the message was sent to.
We could change it to:
The MESSAGE frame MUST include a destination header that MUST be identical to the one used in the corresponding SEND frame.
However, most brokers speak multiple protocols and there might be no "corresponding SEND frame" if the message came in via another protocol. So maybe the following is better:
The MESSAGE frame MUST include a destination header indicating the destination the message was sent to. If the message has been sent using STOMP, this destination header must be identical to the one used in the corresponding SEND frame.
Any better text to propose?