@@ -16,11 +16,11 @@ #include "config.h" #import "OFApplication.h" #import "OFArray.h" -#import "OFDataArray.h" +#import "OFData.h" #import "OFDictionary.h" #import "OFFile.h" #import "OFFileManager.h" #import "OFHTTPClient.h" #import "OFHTTPRequest.h" @@ -57,11 +57,11 @@ OFArray OF_GENERIC(OFString *) *_URLs; size_t _URLIndex; int _errorCode; OFString *_outputPath; bool _continue, _force, _detectFileName, _quiet, _verbose, _insecure; - OFDataArray *_body; + OFData *_body; of_http_request_method_t _method; OFMutableDictionary *_clientHeaders; OFHTTPClient *_HTTPClient; char *_buffer; OFStream *_output; @@ -165,15 +165,15 @@ [_body release]; if ([file isEqual: @"-"]) { void *pool = objc_autoreleasePoolPush(); - _body = [[of_stdin readDataArrayTillEndOfStream] retain]; + _body = [[of_stdin readDataUntilEndOfStream] copy]; objc_autoreleasePoolPop(pool); } else - _body = [[OFDataArray alloc] initWithContentsOfFile: file]; + _body = [[OFData alloc] initWithContentsOfFile: file]; } - (void)setMethod: (OFString *)method { void *pool = objc_autoreleasePoolPush();