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