Differences From Artifact [3b200a0eea]:
- File
src/OFURL.m
— part of check-in
[12a4d43f67]
at
2012-12-11 12:12:33
on branch trunk
— OFURL: Add +[URL].
This also makes -[description] more robust, as with this change, it is
now possible that required parts of the URL are nil. (user: js, size: 11394) [annotate] [blame] [check-ins using]
To Artifact [f5ee6d65c8]:
- File src/OFURL.m — part of check-in [41480893fc] at 2012-12-12 18:57:22 on branch trunk — Small conformance fix for OFHTTPServer + OFURL. (user: js, size: 11428) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
166 167 168 169 170 171 172 173 174 175 176 177 178 179 | portString = [OFString stringWithUTF8String: tmp2]; if ([portString decimalValue] > 65535) @throw [OFInvalidFormatException exceptionWithClass: [self class]]; port = [portString decimalValue]; objc_autoreleasePoolPop(pool); } else { host = [[OFString alloc] initWithUTF8String: UTF8String]; if ([scheme isEqual: @"http"]) | > > > | 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | portString = [OFString stringWithUTF8String: tmp2]; if ([portString decimalValue] > 65535) @throw [OFInvalidFormatException exceptionWithClass: [self class]]; port = [portString decimalValue]; if (port == 0) port = 80; objc_autoreleasePoolPop(pool); } else { host = [[OFString alloc] initWithUTF8String: UTF8String]; if ([scheme isEqual: @"http"]) |
︙ | ︙ |