diff --git a/applications/jpip/CHANGES b/applications/jpip/CHANGES index c58cc5e7..f926b5b3 100644 --- a/applications/jpip/CHANGES +++ b/applications/jpip/CHANGES @@ -7,6 +7,7 @@ What's New for OpenJPIP October 25, 2011 * [kaori] patches for cmake and autotool are applied +* [kaori] fixed client viewer to be compatible with server response header both Content-type and Content-Type October 20, 2011 + [added] API style in openJPIP library diff --git a/applications/jpip/util/opj_viewer/dist/opj_viewer-20111018.jar b/applications/jpip/util/opj_viewer/dist/opj_viewer-20111026.jar similarity index 61% rename from applications/jpip/util/opj_viewer/dist/opj_viewer-20111018.jar rename to applications/jpip/util/opj_viewer/dist/opj_viewer-20111026.jar index a17ca3b6..a1b6789a 100644 Binary files a/applications/jpip/util/opj_viewer/dist/opj_viewer-20111018.jar and b/applications/jpip/util/opj_viewer/dist/opj_viewer-20111026.jar differ diff --git a/applications/jpip/util/opj_viewer/dist/opj_viewer.jar b/applications/jpip/util/opj_viewer/dist/opj_viewer.jar index b135bb0f..4fceec6d 120000 --- a/applications/jpip/util/opj_viewer/dist/opj_viewer.jar +++ b/applications/jpip/util/opj_viewer/dist/opj_viewer.jar @@ -1 +1 @@ -opj_viewer-20111018.jar \ No newline at end of file +opj_viewer-20111026.jar \ No newline at end of file diff --git a/applications/jpip/util/opj_viewer/src/JPIPHttpClient.java b/applications/jpip/util/opj_viewer/src/JPIPHttpClient.java index eee20f71..e4c86a97 100644 --- a/applications/jpip/util/opj_viewer/src/JPIPHttpClient.java +++ b/applications/jpip/util/opj_viewer/src/JPIPHttpClient.java @@ -178,7 +178,9 @@ public class JPIPHttpClient if( !status.contains("OK")) System.err.println( headers.get("Reason")); - hvalueline = headers.get("Content-type").get(0); + if(( hvaluelist = headers.get("Content-type")) == null) + hvaluelist = headers.get("Content-Type"); + hvalueline = hvaluelist.get(0); System.err.println( hvalueline); if( hvalueline.endsWith("jpt-stream")) diff --git a/applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces-20111010.jar b/applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces-20111026.jar similarity index 76% rename from applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces-20111010.jar rename to applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces-20111026.jar index e2f78889..f67cfb5b 100644 Binary files a/applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces-20111010.jar and b/applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces-20111026.jar differ diff --git a/applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces.jar b/applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces.jar index 8fbb188c..f1df7c26 120000 --- a/applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces.jar +++ b/applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces.jar @@ -1 +1 @@ -opj_viewer_xerces-20111010.jar \ No newline at end of file +opj_viewer_xerces-20111026.jar \ No newline at end of file