Updated Branches:
  refs/heads/master be07e7cb9 -> 00dbf720e

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/00dbf720
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/00dbf720
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/00dbf720

Branch: refs/heads/master
Commit: 00dbf720e81965c42e885560d1b7982f046b0cd1
Parents: 9021d27
Author: Martin Tzvetanov Grigorov <mgrigo...@apache.org>
Authored: Wed Apr 25 17:53:55 2012 +0300
Committer: Martin Tzvetanov Grigorov <mgrigo...@apache.org>
Committed: Wed Apr 25 17:53:55 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/00dbf720/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 b577f42..1f88dbd 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
@@ -727,7 +727,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));
                        }
 

Reply via email to