@@ -16,10 +16,11 @@ #include "config.h" #import "OFHTTPCookieManager.h" #import "OFArray.h" +#import "OFDate.h" #import "OFHTTPCookie.h" #import "OFURL.h" @implementation OFHTTPCookieManager + (instancetype)manager @@ -58,14 +59,11 @@ { void *pool = objc_autoreleasePoolPush(); OFString *cookieDomain, *URLHost; size_t i; - if ([cookie domain] == nil) - [cookie setDomain: [URL host]]; - - if ([cookie path] == nil || ![[cookie path] hasPrefix: @"/"]) + if (![[cookie path] hasPrefix: @"/"]) [cookie setPath: @"/"]; if ([cookie isSecure] && ![[URL scheme] isEqual: @"https"]) { objc_autoreleasePoolPop(pool); return;