diff --git a/frontend/src/business/components/project/menu/function/custom-function.js b/frontend/src/business/components/project/menu/function/custom-function.js index b373174cd6..3d3f70753f 100644 --- a/frontend/src/business/components/project/menu/function/custom-function.js +++ b/frontend/src/business/components/project/menu/function/custom-function.js @@ -398,13 +398,16 @@ conn.setRequestMethod(requestMethod); conn.setDoOutput(true); ${connStr}conn.connect(); ${postParamExecCode} +var res = ""; +var rspCode = conn.getResponseCode(); +if (rspCode == 200) { var ipt = conn.getInputStream(); var reader = new java.io.BufferedReader(new java.io.InputStreamReader(ipt, "UTF-8")); var lines; -var res = ""; while((lines = reader.readLine()) !== null) { res += lines; } +} log.info(res); `; }