fixed client viewer to be compatible with server response header both Content-type and Content-Type
This commit is contained in:
parent
8d7073abf6
commit
db7db67851
|
@ -7,6 +7,7 @@ What's New for OpenJPIP
|
||||||
|
|
||||||
October 25, 2011
|
October 25, 2011
|
||||||
* [kaori] patches for cmake and autotool are applied
|
* [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
|
October 20, 2011
|
||||||
+ [added] API style in openJPIP library
|
+ [added] API style in openJPIP library
|
||||||
|
|
Binary file not shown.
|
@ -1 +1 @@
|
||||||
opj_viewer-20111018.jar
|
opj_viewer-20111026.jar
|
|
@ -178,7 +178,9 @@ public class JPIPHttpClient
|
||||||
if( !status.contains("OK"))
|
if( !status.contains("OK"))
|
||||||
System.err.println( headers.get("Reason"));
|
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);
|
System.err.println( hvalueline);
|
||||||
|
|
||||||
if( hvalueline.endsWith("jpt-stream"))
|
if( hvalueline.endsWith("jpt-stream"))
|
||||||
|
|
Binary file not shown.
|
@ -1 +1 @@
|
||||||
opj_viewer_xerces-20111010.jar
|
opj_viewer_xerces-20111026.jar
|
Loading…
Reference in New Issue