From 466413cc4c3f6dca55359eb620fd1e1cd2d3f47b Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 6 Oct 2011 20:48:31 -0400 Subject: [PATCH] Set the RSS content type for Firefox 4 (issue 22) --- docs/00_index.mkd | 1 + docs/04_releases.mkd | 1 + src/com/gitblit/SyndicationServlet.java | 1 + 3 files changed, 3 insertions(+) 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); -- 2.39.5