fix double / on requests to root
authorFelix Fietkau <nbd@openwrt.org>
Fri, 21 Mar 2014 23:56:16 +0000 (00:56 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 21 Mar 2014 23:56:16 +0000 (00:56 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
uclient.c

index 5f27ec9bb06782ff5633b3dc10b88c431fda9d09..095fc93bf719f7f34d8d839ab6f55f42d6dc030a 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;