Differences From Artifact [2ea850eecb]:
- File
src/OFHTTPClient.m
— part of check-in
[1de551cb5f]
at
2016-06-07 22:56:28
on branch trunk
— Add support for reusing OFStreams after close
Right now, this is only useful for OFTCPSocket, as this is the only
class so far not establishing the stream in the init method. However,
this adds the general infrastructure to allow reuse to all subclasses of
OFStream. (user: js, size: 17499) [annotate] [blame] [check-ins using]
To Artifact [c92bc66cbb]:
- File
src/OFHTTPClient.m
— part of check-in
[c25601d462]
at
2016-07-02 23:35:56
on branch trunk
— OFHTTPClient: Properly escape path & query string
OFURL used to return all URL parts escaped, however, when this was
changed, OFHTTPClient was not adjusted. (user: js, size: 17583) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
373 374 375 376 377 378 379 | * As a work around for a bug with split packets in lighttpd when using * HTTPS, we construct the complete request in a buffer string and then * send it all at once. */ if ([URL query] != nil) requestString = [OFMutableString stringWithFormat: @"%s /%@?%@ HTTP/%@\r\n", | | > > | | > | 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 | * As a work around for a bug with split packets in lighttpd when using * HTTPS, we construct the complete request in a buffer string and then * send it all at once. */ if ([URL query] != nil) requestString = [OFMutableString stringWithFormat: @"%s /%@?%@ HTTP/%@\r\n", of_http_request_method_to_string(method), [[URL path] stringByURLEncoding], [[URL query] stringByURLEncoding], [request protocolVersionString]]; else requestString = [OFMutableString stringWithFormat: @"%s /%@ HTTP/%@\r\n", of_http_request_method_to_string(method), [[URL path] stringByURLEncoding], [request protocolVersionString]]; headers = [[[request headers] mutableCopy] autorelease]; if (headers == nil) headers = [OFMutableDictionary dictionary]; if ([headers objectForKey: @"Host"] == nil) { |
︙ | ︙ |