mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-24 11:44:22 +00:00
Bump 14.4
This commit is contained in:
1 parent
958023382d
commit
23f301c819
3 files changed
+29
-6
No files matched your search
@@ -19,7 +19,7 @@ public class HttpUtil0 {
|
||||
public static String readHttp(String url,String userAgent){
|
||||
HttpURLConnection c=null;
|
||||
try {
|
||||
CustomSkinLoader.logger.info("Try to read '"+url+(userAgent==null?" without user agent.":"' with user agent '"+userAgent+"'."));
|
||||
CustomSkinLoader.logger.info("Try to read '"+url+(userAgent==null?"' without user agent.":"' with user agent '"+userAgent+"'."));
|
||||
c=createConnection(url,userAgent);
|
||||
int res = c.getResponseCode()/100;
|
||||
if (res==4||res==5||c.getResponseCode()==HttpURLConnection.HTTP_NO_CONTENT) {
|
||||
|
||||
Reference in new issue
Block a user