Spaces:
Build error
Build error
src/main/java/com/bitservice/Aidemo/AIController.java
CHANGED
@@ -44,11 +44,7 @@ public class AIController {
|
|
44 |
httpPost.addHeader("Content-Type", "application/json");
|
45 |
CloseableHttpResponse response = null;
|
46 |
try {
|
47 |
-
|
48 |
-
Header[] headers = httpResponse.getHeaders("operation-location");
|
49 |
-
System.out.println("headers: " + JSON.toJSONString(headers));
|
50 |
-
// result = httpclient.execute(httpPost, handler);
|
51 |
-
result = headers[0].getValue();
|
52 |
System.out.println("result: " + result);
|
53 |
HttpGet httpget = new HttpGet(result);
|
54 |
httpget.addHeader("api-key", api_key);
|
|
|
44 |
httpPost.addHeader("Content-Type", "application/json");
|
45 |
CloseableHttpResponse response = null;
|
46 |
try {
|
47 |
+
result = httpclient.execute(httpPost, handler);
|
|
|
|
|
|
|
|
|
48 |
System.out.println("result: " + result);
|
49 |
HttpGet httpget = new HttpGet(result);
|
50 |
httpget.addHeader("api-key", api_key);
|