Skip to content
Snippets Groups Projects
Commit eff36cae authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

additional fix for the malformed URL fix of yday

parent 6ff092f1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment