From: Steinar H. Gunderson Date: Sun, 13 Apr 2014 19:30:44 +0000 (+0200) Subject: Fix URL parsing of HTTP inputs with no port. X-Git-Tag: 1.1.0~21 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=f8e6be4ca4d53ca6dbb9a56063c7dfca9b6760c9 Fix URL parsing of HTTP inputs with no port. --- diff --git a/input.cpp b/input.cpp index ec12381..d37b7d9 100644 --- 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; }