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:
Andrey Skriabin 2015-04-02 20:42:54 +03:00 committed by Azat Khuzhin
parent 6dc71e70dc
commit 29a04825d0

View File

@ -275,7 +275,7 @@ main(int argc, char **argv)
}
path = evhttp_uri_get_path(http_uri);
if (path == NULL) {
if (strlen(path) == 0) {
path = "/";
}