clear variables between gets for dump

This commit is contained in:
Grant Limberg 2021-09-22 16:13:54 -07:00
parent 81de6d2dfa
commit 05df378dce
No known key found for this signature in database
GPG Key ID: 2BA62CCABBB4095A

View File

@ -1121,6 +1121,9 @@ static int cli(int argc,char **argv)
}
dump << responseBody << ZT_EOL_S;
responseHeaders.clear();
responseBody = "";
// get bonds
dump << ZT_EOL_S << "bonds" << ZT_EOL_S << "-----" << ZT_EOL_S;
scode = Http::GET(1024 * 1024 * 16,60000,(const struct sockaddr *)&addr,"/bonds",requestHeaders,responseHeaders,responseBody);