夸克盘

This commit is contained in:
lushunming 2024-08-29 15:18:51 +08:00
parent 924fc73add
commit df43a58ad6
1 changed files with 8 additions and 4 deletions

View File

@ -49,11 +49,15 @@ public class ProxyVideo {
}
public static Object[] proxy(String url, Map<String, String> headers) throws Exception {
SpiderDebug.log(" ++start proxy:");
SpiderDebug.log(" ++proxy url:" + url);
SpiderDebug.log(" ++proxy header:" + Json.toJson(headers));
Response response = OkHttp.newCall(url, headers);
SpiderDebug.log("++start proxy:");
SpiderDebug.log(" ++proxy code:" + response.code());
SpiderDebug.log(" ++proxy header:" + Json.toJson(response.headers()));
SpiderDebug.log("++proxy data:" + Json.toJson(response.body()));
SpiderDebug.log(" ++end proxy:");
SpiderDebug.log(" ++proxy res code:" + response.code());
SpiderDebug.log(" ++proxy res header:" + Json.toJson(headers));
SpiderDebug.log(" ++proxy res data:" + Json.toJson(response.body()));
String contentType = response.headers().get("Content-Type");
String contentDisposition = response.headers().get("Content-Disposition");
if (contentDisposition != null) contentType = getMimeType(contentDisposition);