ObjFW  Diff

Differences From Artifact [2ea850eecb]:

To Artifact [c92bc66cbb]:


373
374
375
376
377
378
379
380
381




382
383
384
385


386
387
388
389
390
391
392
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],
		    [URL query], [request protocolVersionString]];
		    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],
		    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) {