From 29a04825d01346b025d84e5ee95f4ff9795eb069 Mon Sep 17 00:00:00 2001 From: Andrey Skriabin Date: Thu, 2 Apr 2015 20:42:54 +0300 Subject: [PATCH] https-client: correctly handle URLs with no path (like "https://host:port") path == NULL check removed Fixes: #233 Fixes: #234 --- sample/https-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = "/"; } -- 2.40.0