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

Commit 72af21c

Browse files
author
Nenu Adrian
committed
If the length of the header array is 1 or 0 then it makes no sense to try to access index 1, I had it crash on me, but worked well with this removal of code which seems quite ilogical to have there, legacy?
1 parent 613b897 commit 72af21c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/stomp.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ function parse_headers(raw_headers) {
5151
headers[header_key] = header_val;
5252
continue;
5353
}
54-
headers[header[0].trim()] = header[1].trim();
5554
}
5655
return headers;
5756
};

0 commit comments

Comments
 (0)