mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-13 00:47:28 +00:00
Bump 14.10
This commit is contained in:
1 parent
4f2b5edf84
commit
88763d64ef
3 files changed
+5
-5
No files matched your search
@@ -145,9 +145,6 @@ public class HttpRequestUtil {
|
||||
return responce;
|
||||
}
|
||||
request.url = c.getHeaderField("Location");//Get redirecting location
|
||||
if (request.url == null) {
|
||||
request.url = c.getHeaderField("location");//Another way
|
||||
}
|
||||
if (request.url == null) {
|
||||
CustomSkinLoader.logger.debug("Failed to request (Redirecting location not found)");
|
||||
return responce;
|
||||
@@ -156,7 +153,7 @@ public class HttpRequestUtil {
|
||||
return makeHttpRequest(request, redirectTime + 1);//Recursion
|
||||
}
|
||||
responce.success=true;
|
||||
CustomSkinLoader.logger.debug("Successfully request (Response Code: "+c.getResponseCode()+" , Content Length: "+c.getContentLength()+")");
|
||||
CustomSkinLoader.logger.debug("Successfully request (Response Code: " + res + " , Content Length: " + c.getContentLength() + ")");
|
||||
if(responce.responceCode==HttpURLConnection.HTTP_NOT_MODIFIED)
|
||||
return loadFromCache(request,responce);
|
||||
if (responce.responceCode == HttpURLConnection.HTTP_NO_CONTENT)
|
||||
|
||||
Reference in new issue
Block a user