fix double / on requests to root
[project/uclient.git] / uclient.c
index 5f27ec9..095fc93 100644 (file)
--- a/uclient.c
+++ b/uclient.c
@@ -45,7 +45,7 @@ static struct uclient_url *uclient_get_url(const char *url_str)
                *next = 0;
                url->location = next + 1;
        } else {
-               url->location = "/";
+               url->location = "";
        }
 
        url->host = url_buf;