James Moger
2013-09-05 7847af6e63e7adef6ec8d99a1809e91472d2bc2d
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();
         }
      }
   }
}