mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-12 05:48:51 -04:00
https-client: correctly handle URLs with no path (like "https://host:port")
path == NULL check removed Fixes: #233 Fixes: #234
This commit is contained in:
parent
6dc71e70dc
commit
29a04825d0
@ -275,7 +275,7 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
path = evhttp_uri_get_path(http_uri);
|
path = evhttp_uri_get_path(http_uri);
|
||||||
if (path == NULL) {
|
if (strlen(path) == 0) {
|
||||||
path = "/";
|
path = "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user