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(); } } } }