Florian Zschocke
2013-07-10 cb946fa57e9dd4ca0853f079331c73dc0331c1e7
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();
         }
      }
   }
}