Skip to content

Commit 24bbee7

Browse files
authored
Merge pull request #25 from SEPIA-Framework/dev
replaced HTTP GET call with 'simpleJsonGet' to avoid sandbox issue
2 parents bbc906d + 68521e3 commit 24bbee7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/net/b07z/sepia/sdk/services/uid1007/DynamicQuestionAnswering.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")){

src/main/java/net/b07z/sepia/sdk/services/uid1007/PythonBridgeDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")){

0 commit comments

Comments
 (0)