ObjFW  Diff

Differences From Artifact [4b826a148e]:

To Artifact [456aec5d03]:


427
428
429
430
431
432
433
434
435


436
437
438
439
440
441
442
427
428
429
430
431
432
433


434
435
436
437
438
439
440
441
442







-
-
+
+








					[delegate request: self
					   didReceiveData: buffer
					       withLength: length];
					[pool2 releaseObjects];

					bytesReceived += length;
					[data addNItems: length
					     fromCArray: buffer];
					[data addItemsFromCArray: buffer
							   count: length];

					toRead -= length;
				}

				@try {
					line = [sock readLine];
				} @catch (OFInvalidEncodingException *e) {
457
458
459
460
461
462
463
464
465


466
467
468
469
470
471
472
457
458
459
460
461
462
463


464
465
466
467
468
469
470
471
472







-
-
+
+







					       intoBuffer: buffer]) > 0) {
				[delegate request: self
				   didReceiveData: buffer
				       withLength: length];
				[pool2 releaseObjects];

				bytesReceived += length;
				[data addNItems: length
				     fromCArray: buffer];
				[data addItemsFromCArray: buffer
						   count: length];

				if (contentLengthHeader != nil &&
				    bytesReceived >= contentLength)
					break;
			}
		}