@@ -217,11 +217,11 @@ /* Work around a bug in lighttpd, see above */ [sock flushWriteBuffer]; [sock setWriteBufferEnabled: NO]; if (requestType == OF_HTTP_REQUEST_TYPE_POST) - [sock writeBuffer: [POSTData cArray] + [sock writeBuffer: [POSTData items] length: [POSTData count] * [POSTData itemSize]]; @try { line = [sock readLine]; } @catch (OFInvalidEncodingException *e) { @@ -405,12 +405,12 @@ objc_autoreleasePoolPop(pool2); pool2 = objc_autoreleasePoolPush(); bytesReceived += length; - [data addItemsFromCArray: buffer - count: length]; + [data addItems: buffer + count: length]; toRead -= length; } @try { @@ -443,12 +443,12 @@ request: request]; objc_autoreleasePoolPop(pool2); bytesReceived += length; - [data addItemsFromCArray: buffer - count: length]; + [data addItems: buffer + count: length]; if (contentLengthHeader != nil && bytesReceived >= contentLength) break; }