fixed client viewer to be compatible with server response header both Content-type...
authorKaori Hagihara <khagihara@users.noreply.github.com>
Tue, 25 Oct 2011 22:16:56 +0000 (22:16 +0000)
committerKaori Hagihara <khagihara@users.noreply.github.com>
Tue, 25 Oct 2011 22:16:56 +0000 (22:16 +0000)
applications/jpip/CHANGES
applications/jpip/util/opj_viewer/dist/opj_viewer-20111018.jar [deleted file]
applications/jpip/util/opj_viewer/dist/opj_viewer-20111026.jar [new file with mode: 0644]
applications/jpip/util/opj_viewer/dist/opj_viewer.jar
applications/jpip/util/opj_viewer/src/JPIPHttpClient.java
applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces-20111010.jar [deleted file]
applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces-20111026.jar [new file with mode: 0644]
applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces.jar

index c58cc5e76aaad68bd8b6d73d4fc50c6d67178901..f926b5b34664e01fa05857205f4e8dd7bc24bb87 100644 (file)
@@ -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-20111018.jar
deleted file mode 100644 (file)
index a17ca3b..0000000
Binary files a/applications/jpip/util/opj_viewer/dist/opj_viewer-20111018.jar and /dev/null differ
diff --git a/applications/jpip/util/opj_viewer/dist/opj_viewer-20111026.jar b/applications/jpip/util/opj_viewer/dist/opj_viewer-20111026.jar
new file mode 100644 (file)
index 0000000..a1b6789
Binary files /dev/null and b/applications/jpip/util/opj_viewer/dist/opj_viewer-20111026.jar differ
index b135bb0f327da642c0383ba25038e8f723c8b64f..4fceec6d264776ac35432d3d7e831e852a5d4a65 120000 (symlink)
@@ -1 +1 @@
-opj_viewer-20111018.jar
\ No newline at end of file
+opj_viewer-20111026.jar
\ No newline at end of file
index eee20f7141032e077bd420f79005c3a41fe3e25f..e4c86a97c3d29e382f4afaaa3ef41d8a5fcb1989 100644 (file)
@@ -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-20111010.jar
deleted file mode 100644 (file)
index e2f7888..0000000
Binary files a/applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces-20111010.jar and /dev/null differ
diff --git a/applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces-20111026.jar b/applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces-20111026.jar
new file mode 100644 (file)
index 0000000..f67cfb5
Binary files /dev/null and b/applications/jpip/util/opj_viewer_xerces/dist/opj_viewer_xerces-20111026.jar differ
index 8fbb188c1071ff176f5fb6923ea24b12f80af334..f1df7c261cea1697b504beaea9822662f397d57c 120000 (symlink)
@@ -1 +1 @@
-opj_viewer_xerces-20111010.jar
\ No newline at end of file
+opj_viewer_xerces-20111026.jar
\ No newline at end of file