mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-12-22 11:57:07 +00:00
Strip trailing slashes from --contentServerURL option
This commit is contained in:
@@ -386,6 +386,8 @@ int main(int argc, char** argv)
|
||||
server.setMultiZimSearchLimit(searchLimit);
|
||||
server.setIpMode(ipMode);
|
||||
server.setCatalogOnlyMode(catalogOnlyFlag);
|
||||
while ( !contentServerURL.empty() && contentServerURL.back() == '/' )
|
||||
contentServerURL.pop_back();
|
||||
server.setContentServerUrl(contentServerURL);
|
||||
|
||||
if (! server.start()) {
|
||||
|
||||
Reference in New Issue
Block a user