Differences From Artifact [4d2868ce13]:
- File
src/OFHTTPServer.m
— part of check-in
[6b77a5dd8b]
at
2017-05-21 21:28:57
on branch trunk
— Prefix private methods with of_ instead of OF_
This matches Apple's style. (user: js, size: 16552) [annotate] [blame] [check-ins using]
To Artifact [d18b7e3988]:
- File
src/OFHTTPServer.m
— part of check-in
[2b6fb5530e]
at
2017-06-21 20:20:27
on branch trunk
— OFHTTPServer: Include the / in the URL path
This was overlooked when URLs were changed to include the / in the path. (user: js, size: 16502) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
465 466 467 468 469 470 471 472 473 474 475 |
path = [[[line substringWithRange:
range] mutableCopy] autorelease];
} @catch (OFOutOfRangeException *e) {
return [self sendErrorAndClose: 400];
}
[path deleteEnclosingWhitespaces];
if (![path hasPrefix: @"/"])
return [self sendErrorAndClose: 400];
| > < < < | 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 |
path = [[[line substringWithRange:
range] mutableCopy] autorelease];
} @catch (OFOutOfRangeException *e) {
return [self sendErrorAndClose: 400];
}
[path deleteEnclosingWhitespaces];
[path makeImmutable];
if (![path hasPrefix: @"/"])
return [self sendErrorAndClose: 400];
_headers = [[OFMutableDictionary alloc] init];
_path = [path copy];
_state = PARSING_HEADERS;
return true;
}
|
| ︙ | ︙ |