mirror of
https://github.com/apache/struts.git
synced 2026-08-11 09:36:57 +00:00
WW-4564 Solves issue with postback result rendered as plain/text in Chrome
Closes #62
This commit is contained in:
@@ -76,6 +76,8 @@ import java.util.Map;
|
||||
*/
|
||||
public class PostbackResult extends StrutsResultSupport {
|
||||
|
||||
private static final long serialVersionUID = -2283504349296877429L;
|
||||
|
||||
private String actionName;
|
||||
private String namespace;
|
||||
private String method;
|
||||
@@ -97,6 +99,9 @@ public class PostbackResult extends StrutsResultSupport {
|
||||
response.setDateHeader("Expires", 0); // Proxies
|
||||
}
|
||||
|
||||
//set contenttype @see ww-4564
|
||||
response.setContentType("text/html");
|
||||
|
||||
// Render
|
||||
PrintWriter pw = new PrintWriter(response.getOutputStream());
|
||||
pw.write("<!DOCTYPE html><html><body><form action=\"" + finalLocation + "\" method=\"POST\">");
|
||||
|
||||
Reference in New Issue
Block a user