I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 0c55de7f authored by zzz's avatar zzz
Browse files

* viewstat.jsp: Send Connection: Close to work around Jetty bug

parent 60f35bdd
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,10 @@ if ( !rendered && ((rs != null) || fakeBw) ) {
response.setContentType("image/png");
// very brief 45 sec expire
response.setDateHeader("Expires", net.i2p.I2PAppContext.getGlobalContext().clock().now() + (45*1000));
// http://jira.codehaus.org/browse/JETTY-1346
// This doesn't actually appear in the response, but it fixes the problem,
// so Jetty must look for this header and close the connection.
response.setHeader("Connection", "Close");
int width = -1;
int height = -1;
int periodCount = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment