Adding proxy for fallback GitBlit Logo Servlet Change-Id: I5b9f00838f645429844ad3da3970da9f48a70df6
diff --git a/src/main/java/com/googlesource/gerrit/plugins/gitblit/GitBlitModule.java b/src/main/java/com/googlesource/gerrit/plugins/gitblit/GitBlitModule.java index 7df9405..0590bb3 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/gitblit/GitBlitModule.java +++ b/src/main/java/com/googlesource/gerrit/plugins/gitblit/GitBlitModule.java
@@ -44,6 +44,8 @@ serve("/pages/*").with(WrappedPagesServlet.class); serve("/feed/*").with(WrappedSyndicationServlet.class); serve("/zip/*").with(WrappedDownloadZipServlet.class); + serve("/logo.png").with(WrappedLogoServlet.class); + serve("/static/logo.png").with(WrappedLogoServlet.class); filter("/*").through(GerritWicketFilter.class); filter("/pages/*").through(WrappedPagesFilter.class);
diff --git a/src/main/java/com/googlesource/gerrit/plugins/gitblit/WrappedLogoServlet.java b/src/main/java/com/googlesource/gerrit/plugins/gitblit/WrappedLogoServlet.java new file mode 100644 index 0000000..1edea30 --- /dev/null +++ b/src/main/java/com/googlesource/gerrit/plugins/gitblit/WrappedLogoServlet.java
@@ -0,0 +1,27 @@ +// Copyright (C) 2013 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +package com.googlesource.gerrit.plugins.gitblit; + +import com.gitblit.LogoServlet; +import com.google.inject.Inject; +import com.google.inject.Singleton; + +@Singleton +@SuppressWarnings("serial") +public class WrappedLogoServlet extends LogoServlet { + @Inject + public WrappedLogoServlet() { + super(); + } +}