From: James Moger Date: Fri, 7 Oct 2011 00:48:31 +0000 (-0400) Subject: Set the RSS content type for Firefox 4 (issue 22) X-Git-Tag: v0.7.0~90^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=466413cc4c3f6dca55359eb620fd1e1cd2d3f47b;p=gitblit.git Set the RSS content type for Firefox 4 (issue 22) --- diff --git a/docs/00_index.mkd b/docs/00_index.mkd index fde2d349..17ca428e 100644 --- a/docs/00_index.mkd +++ b/docs/00_index.mkd @@ -30,6 +30,7 @@ Gitblit requires a Java 6 Runtime Environment (JRE) or a Java 6 Development Kit - improved: updated ui with Twitter's Bootstrap CSS toolkit
**New:** *web.loginMessage = gitblit* +- fixed: Set the RSS content type for Firefox 4 (issue 22) - fixed: Null pointer exception if did not set federation strategy (issue 20) - fixed: Gitblit GO allows SSL renegotiation if running on Java 1.6.0_22 or later - added: IUserService.setup(IStoredSettings) for custom user service implementations diff --git a/docs/04_releases.mkd b/docs/04_releases.mkd index cb1f898d..01b531d6 100644 --- a/docs/04_releases.mkd +++ b/docs/04_releases.mkd @@ -5,6 +5,7 @@ - improved: updated ui with Twitter's Bootstrap CSS toolkit
**New:** *web.loginMessage = gitblit* +- fixed: Set the RSS content type for Firefox 4 (issue 22) - fixed: Null pointer exception if did not set federation strategy (issue 20) - fixed: Gitblit GO allows SSL renegotiation if running on Java 1.6.0_22 or later - added: IUserService.setup(IStoredSettings) for custom user service implementations diff --git a/src/com/gitblit/SyndicationServlet.java b/src/com/gitblit/SyndicationServlet.java index 4ba27891..f1c474ff 100644 --- a/src/com/gitblit/SyndicationServlet.java +++ b/src/com/gitblit/SyndicationServlet.java @@ -135,6 +135,7 @@ public class SyndicationServlet extends HttpServlet { } } + response.setContentType("application/rss+xml; charset=UTF-8"); Repository repository = GitBlit.self().getRepository(repositoryName); RepositoryModel model = GitBlit.self().getRepositoryModel(repositoryName); List commits = JGitUtils.getRevLog(repository, objectId, 0, length);