From f8e6be4ca4d53ca6dbb9a56063c7dfca9b6760c9 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 13 Apr 2014 21:30:44 +0200 Subject: [PATCH] Fix URL parsing of HTTP inputs with no port. --- input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2