Fix URL parsing of HTTP inputs with no port.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 13 Apr 2014 19:30:44 +0000 (21:30 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 13 Apr 2014 19:30:44 +0000 (21:30 +0200)
input.cpp

index ec12381..d37b7d9 100644 (file)
--- a/input.cpp
+++ b/input.cpp
@@ -49,7 +49,7 @@ bool parse_url(const string &url, string *protocol, string *host, string *port,
 
        // http://foo/bar
        *port = *protocol;
-       *path = rest;
+       *path = "/" + rest;
        return true;
 }