diff --git a/Common/source/customskinloader/Logger.java b/Common/source/customskinloader/Logger.java index 27bd2af6..2b499b5b 100644 --- a/Common/source/customskinloader/Logger.java +++ b/Common/source/customskinloader/Logger.java @@ -81,6 +81,9 @@ public void log(Level level,String msg){ public void debug(String msg){ log(Level.DEBUG,msg); } + public void debug(String format, Object... objs) { + debug(String.format(format, objs)); + } public void info(String msg){ log(Level.INFO,msg); } diff --git a/Common/source/customskinloader/utils/HttpRequestUtil.java b/Common/source/customskinloader/utils/HttpRequestUtil.java index 33ab0cbe..cfb39c39 100644 --- a/Common/source/customskinloader/utils/HttpRequestUtil.java +++ b/Common/source/customskinloader/utils/HttpRequestUtil.java @@ -145,9 +145,6 @@ public static HttpResponce makeHttpRequest(HttpRequest request, int redirectTime 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 static HttpResponce makeHttpRequest(HttpRequest request, int redirectTime 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) diff --git a/build.properties b/build.properties index 869414d3..72742668 100644 --- a/build.properties +++ b/build.properties @@ -3,4 +3,4 @@ group=customskinloader version=14.10 dev_version= #RELEASE: snapshot=0 -snapshot=1 \ No newline at end of file +snapshot=0 \ No newline at end of file