commit | 6f46dd19ecb4e6ee840b91a66c25119348525015 | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Thu Sep 22 19:31:29 2011 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Thu Sep 22 19:31:29 2011 +0000 |
tree | 3f118c0a64936043c4edbfd61a280430a478c2f0 | |
parent | f3baf42ca8f60e9670f7bcec4bf07927ce714938 [diff] |
FELIX-3127 Force sending the Date header git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1174336 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java b/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java index 8c4a4af..328ae0a 100644 --- a/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java +++ b/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java
@@ -142,6 +142,10 @@ StringBuffer message = new StringBuffer("Started jetty ").append(Server.getVersion()).append(" at port(s)"); HashUserRealm realm = new HashUserRealm("OSGi HTTP Service Realm"); this.server = new Server(); + + // HTTP/1.1 requires Date header if possible (it is) + this.server.setSendDateHeader(true); + this.server.addUserRealm(realm); if (this.config.isUseHttp())