Skip to content

Commit caa2151

Browse files
committed
Made validation less strict for prototype
1 parent 80e7dc3 commit caa2151

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SocketRocket/SRWebSocket.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ static inline int32_t validate_dispatch_data_partial_string(NSData *data) {
127127
}
128128
}
129129
}
130-
#endif
131130

132131
if (size != -1 && ![[NSString alloc] initWithBytesNoCopy:(char *)[data bytes] length:size encoding:NSUTF8StringEncoding freeWhenDone:NO]) {
133132
size = -1;
134133
}
135-
134+
#endif
135+
136136
return size;
137137
}
138138

0 commit comments

Comments
 (0)