Skip to content

Commit 8f47e45

Browse files
committed
SD image requests - adding logging for testing 7
1 parent a653896 commit 8f47e45

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

java/sage/MetaImage.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)