Florian Zschocke
2013-08-15 69007029f122c3f77db044e879188cc12be3c2f6
src/main/java/com/gitblit/LogoServlet.java
@@ -76,6 +76,7 @@
            contentType = "image/png";
         }
         response.setContentType(contentType);
         response.setHeader("Cache-Control", "public, max-age=3600, must-revalidate");
         OutputStream os = response.getOutputStream();
         byte[] buf = new byte[4096];
         int bytesRead = is.read(buf);
@@ -87,7 +88,9 @@
      } catch (Exception e) {
         e.printStackTrace();
      } finally {
         is.close();
         if(is != null) {
            is.close();
         }
      }
   }
}