@@ -398,12 +398,12 @@ exception: (OFException*)exception { if ([sock_ isAtEndOfStream] || exception != nil) return NO; - [POSTData addItemsFromCArray: buffer - count: length]; + [POSTData addItems: buffer + count: length]; if ([POSTData count] >= contentLength) { @try { [self sendReply]; } @catch (OFWriteFailedException *e) { @@ -499,11 +499,11 @@ [sock writeFormat: @"%@: %@\r\n", key, value]; [sock writeString: @"\r\n"]; if (requestType != OF_HTTP_REQUEST_TYPE_HEAD) - [sock writeBuffer: [replyData cArray] + [sock writeBuffer: [replyData items] length: [replyData count] * [replyData itemSize]]; } @end @implementation OFHTTPServer