Differences From Artifact [d38e8f0fed]:
- File
src/OFHTTPClient.m
— part of check-in
[75c12eaf7b]
at
2014-07-05 09:11:42
on branch trunk
— OFHTTPClient: Defaults for Content-{Type,Length}
In case the entity body has been set, but the headers don't contain
Content-Type and/or Content-Length, assume a default of
"application/x-www-form-urlencoded; charset=UTF-8" for the Content-Type
and set the Content-Length to the number of bytes of the entity body. (user: js, size: 16064) [annotate] [blame] [check-ins using]
To Artifact [ab4c72054a]:
- File
src/OFHTTPClient.m
— part of check-in
[d2487bc7e1]
at
2014-07-07 00:50:01
on branch trunk
— OFURL: Don't include the leading "/" in path
While Cocoa includes it, RFC 1738 explicitly states that the "/" between
host / port and path is not part of the path. (user: js, size: 16015) [annotate] [blame] [check-ins using]
︙ | |||
324 325 326 327 328 329 330 | 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 | - + | of_http_request_method_t method = [request method]; OFMutableString *requestString; OFString *user, *password; OFDictionary *headers = [request headers]; OFDataArray *entity = [request entity]; OFTCPSocket *socket; OFHTTPClientResponse *response; |
︙ | |||
361 362 363 364 365 366 367 | 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 | - - - - - - + + + - - + + | } [_lastResponse release]; _lastResponse = nil; } else socket = [self OF_createSocketForRequest: request]; |
︙ |