Skip to content
Snippets Groups Projects
Commit 7cc01661 authored by Sergey Linev's avatar Sergey Linev
Browse files

[http] Fix special handling of rest_url argument in exe.json

If exe.json?method=MethodName was requested without any
extra arguments, such request was ignored.
But one can call obj->MethodName(""); in this case.
Now fixed
parent 57b8763f
No related branches found
No related tags found
No related merge requests found
......@@ -553,9 +553,11 @@ Bool_t TRootSnifferFull::ProduceExe(const std::string &path, const std::string &
// very special case - function requires list of options after method=argument
const char *pos = strstr(options.c_str(), "method=");
if (!pos || (strlen(pos) < strlen(method_name) + 8))
if (!pos || (strlen(pos) < strlen(method_name) + 7))
return debug != nullptr;
call_args.Form("\"%s\"", pos + strlen(method_name) + 8);
const char *rest_url = pos + strlen(method_name) + 7;
if (*rest_url == '&') ++rest_url;
call_args.Form("\"%s\"", rest_url);
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment