fixed bug: embedded webserver always sent no-cache header.
This commit is contained in:
parent
9b6f706853
commit
c85b7e106a
1 changed files with 1 additions and 2 deletions
|
@ -25,7 +25,6 @@ public class AcmeServletClient extends HttpServlet {
|
|||
private Hashtable apps;
|
||||
private Application app;
|
||||
private String cookieDomain;
|
||||
private boolean caching;
|
||||
private boolean debug;
|
||||
|
||||
static final byte HTTP_GET = 0;
|
||||
|
@ -164,7 +163,7 @@ public class AcmeServletClient extends HttpServlet {
|
|||
|
||||
} else {
|
||||
|
||||
if (!trans.cache || ! caching) {
|
||||
if (!trans.cache) {
|
||||
// Disable caching of response.
|
||||
if (protocol == null || !protocol.endsWith ("1.1"))
|
||||
res.setHeader ("Pragma", "no-cache"); // for HTTP 1.0
|
||||
|
|
Loading…
Add table
Reference in a new issue