File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3269,11 +3269,10 @@ private boolean loadCacheFile()
32693269 //TODO: SD testing of response code
32703270 HttpURLConnection httpConn = (HttpURLConnection ) myURLConn ;
32713271 if (isSDURL ) {
3272- if (Sage .DBG ) System .out .println ("MetaImage.loadCacheFile: HttpURLConnection response found for SD image" );
3273- if (httpConn .getHeaderField ( "Content-Type" )=="application/json" ){
3272+ if (Sage .DBG ) System .out .println ("MetaImage.loadCacheFile: HttpURLConnection response found for SD image - type:" + httpConn . getContentType () + " response code:" + httpConn . getResponseCode () );
3273+ if (httpConn .getContentType ( )=="application/json" ){
32743274 //SD returned an error which is within the returned json
32753275 //TODO: remove after testing
3276- if (Sage .DBG ) System .out .println ("MetaImage.loadCacheFile: Response code:" + httpConn .getResponseCode ());
32773276 //if (Sage.DBG) System.out.println("MetaImage.loadCacheFile: Response header fields:" + httpConn.getHeaderFields());
32783277 SDUtils .handleSDJsonErrorFromHttpResponse (httpConn );
32793278 is .close ();
You can’t perform that action at this time.
0 commit comments