Fix curl_template

This commit is contained in:
folex
2021-03-02 23:32:03 +03:00
parent 9ef4755d81
commit b3b47fc930
5 changed files with 41 additions and 32 deletions

View File

@ -30,7 +30,8 @@ const App = () => {
}
let response = await curlRequest(client, url, 10000);
setData((prev) => [...prev, { url, response }]);
console.log(JSON.stringify(response));
setData((prev) => [...prev, { url, response: response[0].stdout }]);
};
const stop = async () => {