Commits

vspader  committed 1e97995

Assume / for path if none is present in a url.

  • Participants
  • Parent commits cd24d1a

Comments (0)

Files changed (1)

File Plugins/HTTPSource/Utils/HTTPConnection.m

 {
 	NSURL *url = [self URL];
 	
+	NSString *path = [url path];
+	if (nil == path || [path isEqualToString:@""]) {
+		path = @"/";
+	}
+	
 	// The initial GET
-	NSMutableString *requestString = [[NSMutableString alloc] initWithFormat:@"GET %@ HTTP/1.0\r\n", [url path]];
+	NSMutableString *requestString = [[NSMutableString alloc] initWithFormat:@"GET %@ HTTP/1.0\r\n", path];
 	
 	// Make sure there is a Host entry
 	NSString *host = [url host];