ObjFW  Check-in [1cc51986a0]

Overview
Comment:OFHTTPClient: Remove a newline that was too much.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1cc51986a0ce2b22b3342bd422821837442123d882ffd476d4d38912cc5d3329
User & Date: js on 2013-07-29 10:40:57
Other Links: manifest | tags
Context
2013-07-29
19:42
OFHTTPClient: Fix -[close] behaviour. check-in: 6ad892733b user: js tags: trunk
10:40
OFHTTPClient: Remove a newline that was too much. check-in: 1cc51986a0 user: js tags: trunk
2013-07-28
21:07
Replace OFTLSKey w/ +[OFThread threadDictionary]. check-in: 1eaf875a88 user: js tags: trunk
Changes

Modified src/OFHTTPClient.m from [79a0572733] to [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"];