zh21608 commited on
Commit
76f0567
·
1 Parent(s): e30a77f
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
- CloseableHttpResponse httpResponse = httpclient.execute(httpPost);
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);