Skip to content
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
7 changes: 1 addition & 6 deletions WebsocketStompKit/WebsocketStompKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,7 @@ + (STOMPFrame *) STOMPFrameFromData:(NSData *)data {
[contents removeObjectAtIndex:0];
for(NSString *line in contents) {
if(hasHeaders) {
for (int i=0; i < [line length]; i++) {
unichar c = [line characterAtIndex:i];
if (c != '\x00') {
[body appendString:[NSString stringWithFormat:@"%c", c]];
}
}
[body appendString:[line stringByReplacingOccurrencesOfString:kNullChar withString:@""]];
} else {
if ([line isEqual:@""]) {
hasHeaders = YES;
Expand Down