From 14724d781a5fa2b9f126027f4511d957e4e048ca Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Thu, 27 Jun 2019 16:18:35 +0200
Subject: [PATCH] Handle servernames terminated with a slash

---
 lib/http/client.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/http/client.cpp b/lib/http/client.cpp
index 619717531..23e877630 100644
--- a/lib/http/client.cpp
+++ b/lib/http/client.cpp
@@ -29,6 +29,8 @@ Client::set_server(const std::string &server)
         // Remove https prefix, if it exists
         if (boost::algorithm::starts_with(server_name, "https://"))
                 boost::algorithm::erase_first(server_name, "https://");
+        if (server_name.size() > 0 && server_name.back() == '/')
+                server_name.erase(server_name.end() - 1);
 
         // Check if the input also contains the port.
         std::vector<std::string> parts;
-- 
GitLab