Skip to content

Commit

Permalink
Adjusting the .http file parsing regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
vokal-isaac committed Oct 28, 2014
1 parent 22272af commit 924cd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VOKMockUrlProtocol.m
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ - (VOKMockUrlProtocolResponseAndDataContainer *)responseAndDataFromHTTPResponseS
{
NSError *regexError;
NSRegularExpression *statusHeadersBodyRegex = [NSRegularExpression
regularExpressionWithPattern:@"^([^\r\n]*)[\r\n](.*)[\r\n]{2}(.*)$"
regularExpressionWithPattern:@"^([^\r\n]*)[\r\n]?(.*)[\r\n]{2}(.*)$"
options:NSRegularExpressionDotMatchesLineSeparators
error:&regexError];
if (!statusHeadersBodyRegex) {
Expand Down

0 comments on commit 924cd90

Please sign in to comment.