Skip to content

Commit

Permalink
Bump 14.10
Browse files Browse the repository at this point in the history
  • Loading branch information
xfl03 committed Mar 3, 2019
1 parent 4f2b5ed commit 88763d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Common/source/customskinloader/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
5 changes: 1 addition & 4 deletions Common/source/customskinloader/utils/HttpRequestUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ group=customskinloader
version=14.10
dev_version=
#RELEASE: snapshot=0
snapshot=1
snapshot=0

0 comments on commit 88763d6

Please sign in to comment.