Differences From Artifact [b38762c50f]:
- File src/OFHTTPClient.m — part of check-in [a456f4d39d] at 2018-03-11 20:04:19 on branch trunk — OFHTTPClient: Only throw away if we actually can (user: js, size: 30703) [annotate] [blame] [check-ins using]
To Artifact [e9e028700b]:
- File src/OFHTTPClient.m — part of check-in [69c2ca803a] at 2018-03-11 23:11:37 on branch trunk — OFHTTPClient: Throw if socket got closed too early (user: js, size: 30783) [annotate] [blame] [check-ins using]
︙ | |||
928 929 930 931 932 933 934 935 936 937 938 939 940 941 | 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 | + + + | if (_atEndOfStream) return 0; if (!_hasContentLength && !_chunked) return [_socket readIntoBuffer: buffer length: length]; if ([_socket isAtEndOfStream]) @throw [OFTruncatedDataException exception]; /* Content-Length */ if (!_chunked) { size_t ret; if (length > _toRead) length = (size_t)_toRead; |
︙ |