]> git.sesse.net Git - cubemap/blobdiff - input.cpp
Fix URL parsing of HTTP inputs with no port.
[cubemap] / 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;
-       *path = rest;
+       *path = "/" + rest;
        return true;
 }