diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-05-19 07:21:18 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-05-19 07:21:18 +0000 |
commit | eff36caea8bfcdc05be67a240d11a2387e8a0648 (patch) | |
tree | fe8b5179d6de806b28963826a8d7d079243ccea0 | |
parent | 6ff092f140981e4e5f5c90a4fd8f389a9592236c (diff) |
additional fix for the malformed URL fix of yday
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2466,6 +2466,10 @@ static CURLcode CreateConnection(struct SessionHandle *data, *tmp=0; /* now cut off the hostname at the ? */ } + else if(!conn->path[0]) { + /* if there's no path set, use a single slash */ + strcpy(conn->path, "/"); + } /* If the URL is malformatted (missing a '/' after hostname before path) we * insert a slash here. The only letter except '/' we accept to start a path |