• R/O
  • SSH
  • HTTPS

webserver: Commit


Commit MetaInfo

Revision65 (tree)
Time2010-12-06 21:04:32
Authorhoritaku

Log Message

gzip修正

Change Summary

Incremental Difference

--- branch/Basic 0.2x/src/servercore/job/JobWorker.java (revision 64)
+++ branch/Basic 0.2x/src/servercore/job/JobWorker.java (revision 65)
@@ -54,8 +54,7 @@
5454 String LastMod = editTimeZone(res.getLastModified());
5555 if(res.getStatusCore() == 200) {
5656 resStr += "HTTP/1.1 200 OK\r\n";
57-
58- if(useGzip) {
57+ if(useGzip && (ext.equals("html") || ext.equals("htm")|| ext.equals("do"))) {
5958 try {
6059 ByteArrayOutputStream baos = new ByteArrayOutputStream();
6160 GZIPOutputStream gos = new GZIPOutputStream(baos);
@@ -71,6 +70,8 @@
7170 ioe.printStackTrace();
7271 useGzip = false;
7372 }
73+ } else {
74+ useGzip = false;
7475 }
7576
7677 } else if(res.getStatusCore() == 201) {
Show on old repository browser