@@ -326,11 +326,11 @@ OFString *user, *password; OFDictionary *headers = [request headers]; OFDataArray *entity = [request entity]; OFTCPSocket *socket; OFHTTPClientResponse *response; - OFString *line, *path, *version, *redirect, *keepAlive; + OFString *line, *version, *redirect, *keepAlive; OFMutableDictionary *serverHeaders; OFEnumerator *keyEnumerator, *objectEnumerator; OFString *key, *object; int status; @@ -363,27 +363,24 @@ [_lastResponse release]; _lastResponse = nil; } else socket = [self OF_createSocketForRequest: request]; - if ([(path = [URL path]) length] == 0) - path = @"/"; - /* * As a work around for a bug with split packets in lighttpd when using * HTTPS, we construct the complete request in a buffer string and then * send it all at once. */ if ([URL query] != nil) requestString = [OFMutableString stringWithFormat: - @"%s %@?%@ HTTP/%@\r\n", - of_http_request_method_to_string(method), path, [URL query], - [request protocolVersionString]]; + @"%s /%@?%@ HTTP/%@\r\n", + of_http_request_method_to_string(method), [URL path], + [URL query], [request protocolVersionString]]; else requestString = [OFMutableString stringWithFormat: - @"%s %@ HTTP/%@\r\n", - of_http_request_method_to_string(method), path, + @"%s /%@ HTTP/%@\r\n", + of_http_request_method_to_string(method), [URL path], [request protocolVersionString]]; if ([URL port] == 80) [requestString appendFormat: @"Host: %@\r\n", [URL host]]; else