You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2012/04/25 16:55:11 UTC
git commit: WICKET-4516 WebApplication#renderXmlDecl() uses wrong
name of the 'Accept' request header
Updated Branches:
refs/heads/wicket-1.5.x bfd1481df -> fd07f7d06
WICKET-4516 WebApplication#renderXmlDecl() uses wrong name of the 'Accept' request header
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/fd07f7d0
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/fd07f7d0
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/fd07f7d0
Branch: refs/heads/wicket-1.5.x
Commit: fd07f7d068554be5dfb5e5bc7b6aeb564577f93f
Parents: bfd1481
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Wed Apr 25 17:53:55 2012 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Wed Apr 25 17:54:46 2012 +0300
----------------------------------------------------------------------
.../wicket/protocol/http/WebApplication.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/fd07f7d0/wicket-core/src/main/java/org/apache/wicket/protocol/http/WebApplication.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/protocol/http/WebApplication.java b/wicket-core/src/main/java/org/apache/wicket/protocol/http/WebApplication.java
index 4516f48..6e0ba20 100644
--- a/wicket-core/src/main/java/org/apache/wicket/protocol/http/WebApplication.java
+++ b/wicket-core/src/main/java/org/apache/wicket/protocol/http/WebApplication.java
@@ -728,7 +728,7 @@ public abstract class WebApplication extends Application
{
WebRequest request = (WebRequest)cycle.getRequest();
- String accept = request.getHeader("HTTP_ACCEPT");
+ String accept = request.getHeader("Accept");
insert = ((accept == null) || (accept.indexOf(MarkupType.XML_MIME) != -1));
}