fixed client viewer to be compatible with server response header both Content-type and Content-Type

This commit is contained in:
Kaori Hagihara 2011-10-25 22:16:56 +00:00
parent 8d7073abf6
commit db7db67851
6 changed files with 6 additions and 3 deletions

View 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

View File

@ -1 +1 @@
opj_viewer-20111018.jar
opj_viewer-20111026.jar

View 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"))

View File

@ -1 +1 @@
opj_viewer_xerces-20111010.jar
opj_viewer_xerces-20111026.jar