summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2017-06-28 15:52:00 +0200
committerJulian Andres Klode <jak@debian.org>2017-06-28 15:52:38 +0200
commit29a08d8ab0c4d82f26c2712c456508784040cdbb (patch)
treecd5d9943b1ad84fe9696e14a97de716ef3cf1253 /methods
parentf806530b9ea858ca6bda8fb8f43d988aba02dab3 (diff)
Fix https->http redirect issues
Gbp-Dch: ignore
Diffstat (limited to 'methods')
-rw-r--r--methods/http_main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/http_main.cc b/methods/http_main.cc
index 1e56044b7..90a0450e2 100644
--- a/methods/http_main.cc
+++ b/methods/http_main.cc
@@ -11,7 +11,7 @@ int main(int, const char *argv[])
// closes the connection (this is dealt with via ServerDie())
signal(SIGPIPE, SIG_IGN);
std::string Binary = flNotDir(argv[0]);
- if (Binary.find('+') == std::string::npos && Binary != "http")
+ if (Binary.find('+') == std::string::npos && Binary != "https" && Binary != "http")
Binary.append("+http");
return HttpMethod(std::move(Binary)).Loop();
}