fixed bug: embedded webserver always sent no-cache header.

This commit is contained in:
hns 2001-12-02 22:50:25 +00:00
parent 9b6f706853
commit c85b7e106a

View file

@ -25,7 +25,6 @@ public class AcmeServletClient extends HttpServlet {
private Hashtable apps; private Hashtable apps;
private Application app; private Application app;
private String cookieDomain; private String cookieDomain;
private boolean caching;
private boolean debug; private boolean debug;
static final byte HTTP_GET = 0; static final byte HTTP_GET = 0;
@ -164,7 +163,7 @@ public class AcmeServletClient extends HttpServlet {
} else { } else {
if (!trans.cache || ! caching) { if (!trans.cache) {
// Disable caching of response. // Disable caching of response.
if (protocol == null || !protocol.endsWith ("1.1")) if (protocol == null || !protocol.endsWith ("1.1"))
res.setHeader ("Pragma", "no-cache"); // for HTTP 1.0 res.setHeader ("Pragma", "no-cache"); // for HTTP 1.0