Mercurial > hg > digilib-old
comparison servlet/src/digilib/servlet/ServletOps.java @ 833:8ee72433bb8f stream
logs more request and response headers.
unsure about last-modified response.
author | robcast |
---|---|
date | Tue, 01 Mar 2011 10:14:29 +0100 |
parents | 30037e93ec2a |
children | 6584af320296 |
comparison
equal
deleted
inserted
replaced
831:30037e93ec2a | 833:8ee72433bb8f |
---|---|
301 if (response == null) { | 301 if (response == null) { |
302 logger.error("No response!"); | 302 logger.error("No response!"); |
303 return; | 303 return; |
304 } | 304 } |
305 logger.debug("sending to response: ("+ headersToString(response) + ") committed=" + response.isCommitted()); | 305 logger.debug("sending to response: ("+ headersToString(response) + ") committed=" + response.isCommitted()); |
306 // TODO: should we erase or replace old last-modified header? | |
306 try { | 307 try { |
307 OutputStream outstream = response.getOutputStream(); | 308 OutputStream outstream = response.getOutputStream(); |
308 // setup output -- if mime type is set use that otherwise | 309 // setup output -- if mime type is set use that otherwise |
309 // if source is JPG then dest will be JPG else it's PNG | 310 // if source is JPG then dest will be JPG else it's PNG |
310 if (mimeType == null) { | 311 if (mimeType == null) { |