Loading src/blogi.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -1243,6 +1243,12 @@ void blogi::Blogi::settingsApi(libhttppp::HttpRequest& curreq,const int tid,cons json_object_object_foreach(jresp, k, v){ json_object_object_add(jresponse, k, json_object_get(v)); } // Add debug info json_object_object_add(jresponse, "_debug_apipath", json_object_new_string(apipath.c_str())); json_object_object_add(jresponse, "_debug_qs", json_object_new_string(apiquerystring.c_str())); json_object_object_add(jresponse, "_debug_authid", json_object_new_string(authid.empty() ? "(empty)" : authid.c_str())); json_object_object_add(jresponse, "_debug_resp", json_object_new_string( json_object_to_json_string_ext(jresp, JSON_C_TO_STRING_NOSLASHESCAPE))); json_object_put(jreq); json_object_put(jresp); }else{ Loading Loading
src/blogi.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -1243,6 +1243,12 @@ void blogi::Blogi::settingsApi(libhttppp::HttpRequest& curreq,const int tid,cons json_object_object_foreach(jresp, k, v){ json_object_object_add(jresponse, k, json_object_get(v)); } // Add debug info json_object_object_add(jresponse, "_debug_apipath", json_object_new_string(apipath.c_str())); json_object_object_add(jresponse, "_debug_qs", json_object_new_string(apiquerystring.c_str())); json_object_object_add(jresponse, "_debug_authid", json_object_new_string(authid.empty() ? "(empty)" : authid.c_str())); json_object_object_add(jresponse, "_debug_resp", json_object_new_string( json_object_to_json_string_ext(jresp, JSON_C_TO_STRING_NOSLASHESCAPE))); json_object_put(jreq); json_object_put(jresp); }else{ Loading