Florian Zschocke
2013-08-20 3a067e5b667bb30b7ddd18f7860358d725f01219
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();
         }
      }
   }
}