Index: src/OFHTTPRequest.m
==================================================================
--- src/OFHTTPRequest.m
+++ src/OFHTTPRequest.m
@@ -37,14 +37,14 @@
- init
{
self = [super init];
requestType = OF_HTTP_REQUEST_TYPE_GET;
- headers = [OFDictionary
- dictionaryWithObject: @"Something using ObjFW "
- @""
- forKey: @"User-Agent"];
+ headers = [[OFDictionary alloc]
+ initWithObject: @"Something using ObjFW "
+ @""
+ forKey: @"User-Agent"];
return self;
}
- (void)dealloc
@@ -260,11 +260,11 @@
[s_headers setObject: value
forKey: key];
}
- data = [[sock readDataArrayTillEndOfStream] retain];
+ data = [sock readDataArrayTillEndOfStream];
if ([s_headers objectForKey: @"Content-Length"] != nil) {
intmax_t cl;
cl = [[s_headers objectForKey: @"Content-Length"]