Skip to content
Snippets Groups Projects
Commit 25526d9b authored by Sergey Linev's avatar Sergey Linev Committed by Axel Naumann
Browse files

http: let disable object inclusion in draw.htm request

Normally THttpServer includes current object version when 
reply on draw.htm requests. With "no_root_json" and "no_h_json" 
URL parameters one can disable this. Such functionality required 
for web canvas
parent ecba1bc2
No related branches found
No related tags found
No related merge requests found
......@@ -703,7 +703,7 @@ void THttpServer::ProcessRequest(THttpCallArg *arg)
arg->fContent.ReplaceAll("=\"jsrootsys/", repl);
}
if (arg->fContent.Index(hjsontag) != kNPOS) {
if ((arg->fQuery.Index("no_h_json") == kNPOS) && (arg->fContent.Index(hjsontag) != kNPOS)) {
TString h_json;
TRootSnifferStoreJson store(h_json, kTRUE);
const char *topname = fTopName.Data();
......@@ -713,7 +713,7 @@ void THttpServer::ProcessRequest(THttpCallArg *arg)
arg->fContent.ReplaceAll(hjsontag, h_json);
}
if (arg->fContent.Index(rootjsontag) != kNPOS) {
if ((arg->fQuery.Index("no_root_json") == kNPOS) && (arg->fContent.Index(rootjsontag) != kNPOS)) {
TString str;
void *bindata = 0;
Long_t bindatalen = 0;
......
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