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 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 {
                *next = 0;
                url->location = next + 1;
        } else {
-               url->location = "/";
+               url->location = "";
        }
 
        url->host = url_buf;
        }
 
        url->host = url_buf;