@@ -173,11 +173,11 @@ if (requestType == OF_HTTP_REQUEST_TYPE_HEAD) type = "HEAD"; if (requestType == OF_HTTP_REQUEST_TYPE_POST) type = "POST"; - if ([(path = [URL path]) isEqual: @""]) + if ([(path = [URL path]) length] == 0) path = @"/"; if ([URL query] != nil) [sock writeFormat: @"%s %@?%@ HTTP/1.1\r\n", type, path, [URL query]]; @@ -260,11 +260,11 @@ if (line == nil) @throw [OFInvalidServerReplyException exceptionWithClass: [self class]]; - if ([line isEqual: @""]) + if ([line length] == 0) break; lineC = [line UTF8String]; if ((tmp = strchr(lineC, ':')) == NULL) @@ -429,11 +429,11 @@ } @catch (OFInvalidEncodingException *e) { @throw [OFInvalidServerReplyException exceptionWithClass: [self class]]; } - if (![line isEqual: @""]) + if ([line length] > 0) @throw [OFInvalidServerReplyException exceptionWithClass: [self class]]; objc_autoreleasePoolPop(pool2); }