@@ -75,14 +75,14 @@
- init
{
self = [super init];
requestType = OF_HTTP_REQUEST_TYPE_GET;
- headers = [[OFDictionary alloc]
- initWithObject: @"Something using ObjFW "
- @""
- forKey: @"User-Agent"];
+ headers = [[OFDictionary alloc] initWithKeysAndObjects:
+ @"Connection", @"close",
+ @"User-Agent", @"Something using ObjFW "
+ @"", nil];
storesData = YES;
return self;
}