X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/b0a202776ab7634c206b495b42e20cfe6492e035..989d0da7e93d155dde399bf3047ab6b4af550bb6:/Server/src/command.cpp diff --git a/Server/src/command.cpp b/Server/src/command.cpp index f0e3ef1..47a4a60 100644 --- a/Server/src/command.cpp +++ b/Server/src/command.cpp @@ -54,7 +54,13 @@ Command::Command(const string& _target, const string& _command) { } void Command::build(void) { - uri = string("/") + target + '/' + command + String::join(args, "/"); + uri = string("/") + target; + if (command.length()) { + uri += '/' + command; + if (args.size()) { + uri += '/' + String::join(args, "/"); + } + } #ifdef DEBUG cerr << __FILE__ << ": build() = " << uri << endl; #endif // DEBUG