fix for http get result

This commit is contained in:
john30
2017-04-22 08:31:30 +02:00
parent 27f28eb1d8
commit 3e7274d977
+2 -1
View File
@@ -1542,7 +1542,7 @@ string MainLoop::executeGet(vector<string> &args, bool& connected) {
ostringstream result;
int type = -1;
if (strncmp(uri.c_str(), "/data/", 6) == 0) {
if (uri.substr(0, 6) == "/data/") {
string circuit = "", name = "";
size_t pos = uri.find('/', 6);
if (pos == string::npos) {
@@ -1650,6 +1650,7 @@ string MainLoop::executeGet(vector<string> &args, bool& connected) {
}
}
message->decode(result, verbosity, !first);
first = false;
}
if (lastCircuit.length() > 0) {