From: Andrey Skriabin Date: Thu, 2 Apr 2015 17:42:54 +0000 (+0300) Subject: https-client: correctly handle URLs with no path (like "https://host:port") X-Git-Tag: release-2.1.6-beta~90^2~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29a04825d01346b025d84e5ee95f4ff9795eb069;p=libevent https-client: correctly handle URLs with no path (like "https://host:port") path == NULL check removed Fixes: #233 Fixes: #234 --- diff --git a/sample/https-client.c b/sample/https-client.c index fbd5de8c..38f07e9c 100644 --- a/sample/https-client.c +++ b/sample/https-client.c @@ -275,7 +275,7 @@ main(int argc, char **argv) } path = evhttp_uri_get_path(http_uri); - if (path == NULL) { + if (strlen(path) == 0) { path = "/"; }