Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions lib/stomp.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,16 @@ function parse_headers(raw_headers) {
var header_val = header.join(':').trim();
headers[header_key] = header_val;
continue;
}
headers[header[0].trim()] = header[1].trim();
} else {
/**
* This was causing errors for me,
* unsure as to why it is placed here
* in the code anyway, as we have already
* tested the length of the array
* above.
*/
headers[header[0].trim()] = null;
}
}
return headers;
};
Expand Down