mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-19 14:19:10 +00:00
Get ready for new JsonAPI
This commit is contained in:
1 parent
8bccab4f0b
commit
bbc355365a
8 files changed
+171
-169
No files matched your search
@@ -30,7 +30,7 @@ public class HttpUtil0 {
|
||||
InputStream is = c.getInputStream();
|
||||
return IOUtils.toString(is, Charsets.UTF_8);
|
||||
} catch (Exception e) {
|
||||
CustomSkinLoader.logger.info("Failed to read (Exception: "+e.getMessage()+")");
|
||||
CustomSkinLoader.logger.info("Failed to read (Exception: "+e.toString()+")");
|
||||
return null;
|
||||
} finally {
|
||||
if(c!=null)
|
||||
@@ -62,7 +62,7 @@ public class HttpUtil0 {
|
||||
+ "Real URL: "+url1+")");
|
||||
return HttpTextureUtil.getLegacyFakeUrl(url1, HttpTextureUtil.getHash(url1, c.getContentLength(), c.getLastModified()));
|
||||
} catch (Exception e) {
|
||||
CustomSkinLoader.logger.info("Failed to get fake url (Exception: "+e.getMessage()+")");
|
||||
CustomSkinLoader.logger.info("Failed to get fake url (Exception: "+e.toString()+")");
|
||||
return null;
|
||||
} finally{
|
||||
if(c!=null)
|
||||
|
||||
Reference in new issue
Block a user