Overview
Comment: | OFURL: Include the / in the path for http(s). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
3d041cd4bfe8830f5894c29771e08907 |
User & Date: | js on 2011-02-27 00:09:04 |
Other Links: | manifest | tags |
Context
2011-02-27
| ||
00:35 | Rename -[result] to -[perform] in OFHTTPRequest. check-in: 53213f1d41 user: js tags: trunk | |
00:09 | OFURL: Include the / in the path for http(s). check-in: 3d041cd4bf user: js tags: trunk | |
2011-02-26
| ||
19:40 | Use class swizzling as an optimization. check-in: 06f539766f user: js tags: trunk | |
Changes
Modified src/OFHTTPRequest.m from [238deadfe5] to [f906f98e49].
︙ | |||
151 152 153 154 155 156 157 | 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | - - + + - + - + | if (requestType == OF_HTTP_REQUEST_TYPE_GET) t = "GET"; if (requestType == OF_HTTP_REQUEST_TYPE_HEAD) t = "HEAD"; if (requestType == OF_HTTP_REQUEST_TYPE_POST) t = "POST"; |
︙ |
Modified src/OFURL.m from [dd90f55a48] to [77a2a36083].
︙ | |||
195 196 197 198 199 200 201 | 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 | - - + + + | if ((tmp = strchr(str_c, ';')) != NULL) { *tmp = '\0'; parameters = [[OFString alloc] initWithCString: tmp + 1]; } |
︙ | |||
250 251 252 253 254 255 256 | 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | - + | if ((tmp = strchr(str_c, ';')) != NULL) { *tmp = '\0'; parameters = [[OFString alloc] initWithCString: tmp + 1]; } if (*str_c == '/') |
︙ | |||
435 436 437 438 439 440 441 | 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 | - + + + + + + + + | - (OFString*)path { return [[path copy] autorelease]; } - (void)setPath: (OFString*)path_ { |
︙ | |||
501 502 503 504 505 506 507 | 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 | - - + | if (([scheme isEqual: @"http"] && port == 80) || ([scheme isEqual: @"https"] && port == 443)) needPort = NO; if (needPort) [desc appendFormat: @":%d", port]; |
︙ |
Modified tests/OFURLTests.m from [8cc6f93e13] to [239dafd02e].
︙ | |||
61 62 63 64 65 66 67 | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | - + | [[u1 scheme] isEqual: @"http"] && [[u4 scheme] isEqual: @"file"]) TEST(@"-[user]", [[u1 user] isEqual: @"u"] && [u4 user] == nil) TEST(@"-[password]", [[u1 password] isEqual: @"p"] && [u4 password] == nil) TEST(@"-[host]", [[u1 host] isEqual: @"h"] && [u4 port] == 0) TEST(@"-[port]", [u1 port] == 1234) TEST(@"-[path]", |
︙ |