ObjFW  Diff

Differences From Artifact [79a0572733]:

To Artifact [4ed5c94cac]:


410
411
412
413
414
415
416
417

418
419
420
421

422
423
424
425
426
427
428
410
411
412
413
414
415
416

417
418
419
420

421
422
423
424
425
426
427
428







-
+



-
+







		[requestString appendFormat: @"%@: %@\r\n", key, object];

	if (requestType == OF_HTTP_REQUEST_TYPE_POST) {
		OFString *contentType = [request MIMEType];

		if (contentType == nil)
			contentType = @"application/x-www-form-urlencoded; "
			    @"charset=UTF-8\r\n";
			    @"charset=UTF-8";

		[requestString appendFormat:
		    @"Content-Type: %@\r\n"
		    @"Content-Length: %d\r\n",
		    @"Content-Length: %zu\r\n",
		    contentType, [POSTData count] * [POSTData itemSize]];
	}

	if ([request protocolVersion].major == 1 &&
	    [request protocolVersion].minor == 0)
		[requestString appendString: @"Connection: keep-alive\r\n"];