File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/net/b07z/sepia/sdk/services/uid1007 Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ public ServiceResult getResult(NluResult nluResult) {
165165 /*
166166 try{
167167 String qUrlParam = "?q=" + URLEncoder.encode(qRaw, "UTF-8");
168- JSONObject response = Connectors.apacheHttpGETjson (
168+ JSONObject response = Connectors.simpleJsonGet (
169169 "http://localhost:20731/my-service/" + qUrlParam
170170 );
171171 if (response != null && response.containsKey("answer")){
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ public ServiceResult getResult(NluResult nluResult) {
168168 String myQuestion = "my question";
169169 try{
170170 String qUrlParam = "?q=" + URLEncoder.encode(myQuestion, "UTF-8");
171- JSONObject response = Connectors.apacheHttpGETjson (
171+ JSONObject response = Connectors.simpleJsonGet (
172172 "http://localhost:20731/my-service/" + qUrlParam
173173 );
174174 if (response != null && response.containsKey("myReply")){
You can’t perform that action at this time.
0 commit comments