mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-12 01:27:33 +00:00
Fix no content cache
This commit is contained in:
1 parent
be8b80bd55
commit
7bbfd19bfd
2 files changed
+11
-13
No files matched your search
@@ -138,6 +138,8 @@ public class HttpRequestUtil {
|
||||
CustomSkinLoader.logger.debug("Successfully request (Response Code: "+c.getResponseCode()+" , Content Length: "+c.getContentLength()+")");
|
||||
if(responce.responceCode==HttpURLConnection.HTTP_NOT_MODIFIED)
|
||||
return loadFromCache(request,responce);
|
||||
if (responce.responceCode == HttpURLConnection.HTTP_NO_CONTENT)
|
||||
request.cacheTime = 3600;
|
||||
|
||||
//Load Content
|
||||
InputStream is="gzip".equals(c.getContentEncoding())?new GZIPInputStream(c.getInputStream()):c.getInputStream();
|
||||
|
||||
Reference in new issue
Block a user