Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Commit 5fd25f2

Browse files
author
Joshua Rubin
committed
Fix some issues with the stomp protocol
The messages produced were not completely compliant with the stomp protocol. This did not manifest until testing with SSL. http://stomp.codehaus.org/Protocol Signed-off-by: Joshua Rubin <jrubin@zvelo.com>
1 parent fe56101 commit 5fd25f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/frame.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ Frame.prototype.as_string = function() {
7474
}
7575

7676
frame += command + "\n";
77-
frame += header_strs.join('\n');
78-
frame += "\n";
77+
frame += header_strs.join("\n");
78+
frame += "\n\n";
7979

8080
if(body)
81-
frame += '\n' + body + '\x00';
81+
frame += body;
8282

83-
frame += '\n\x00';
83+
frame += '\x00\n';
8484

8585
return frame;
8686
};

0 commit comments

Comments
 (0)