Spaces:
Build error
Build error
src/main/java/com/bitservice/Aidemo/AIController.java
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
package com.bitservice.Aidemo;
|
2 |
|
3 |
|
|
|
4 |
import org.apache.http.Header;
|
5 |
import org.apache.http.HttpEntity;
|
6 |
import org.apache.http.client.ResponseHandler;
|
@@ -45,7 +46,7 @@ public class AIController {
|
|
45 |
try {
|
46 |
CloseableHttpResponse httpResponse = httpclient.execute(httpPost);
|
47 |
Header[] headers = httpResponse.getHeaders("operation-location");
|
48 |
-
System.out.println("headers: " + headers);
|
49 |
// result = httpclient.execute(httpPost, handler);
|
50 |
result = headers[0].getValue();
|
51 |
System.out.println("result: " + result);
|
|
|
1 |
package com.bitservice.Aidemo;
|
2 |
|
3 |
|
4 |
+
import com.alibaba.fastjson.JSON;
|
5 |
import org.apache.http.Header;
|
6 |
import org.apache.http.HttpEntity;
|
7 |
import org.apache.http.client.ResponseHandler;
|
|
|
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);
|