]> git.sesse.net Git - cubemap/commitdiff
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 ec1238181d076273c5d6019fce16e768ed1d6689..d37b7d997e16f41f5afbe6d4421e5d669ad4d516 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;
 
        // http://foo/bar
        *port = *protocol;
-       *path = rest;
+       *path = "/" + rest;
        return true;
 }
 
        return true;
 }