summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2017-04-21 08:58:51 +0200
committerHenri Sara <henri.sara@gmail.com>2017-04-21 09:58:51 +0300
commit973278ac4967996234006903f1838cc4d943f147 (patch)
treeb9f78bb020cb23b44b917c67cd3cde9951826fa1 /shared
parentb5b7bb7021eb2643629cb9cae9da8a6d9fad3283 (diff)
downloadvaadin-framework-973278ac4967996234006903f1838cc4d943f147.tar.gz
vaadin-framework-973278ac4967996234006903f1838cc4d943f147.zip
Include charset in text/html responses (#8777) (#9123)
Addresses #8775 for version 8.1+
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ApplicationConstants.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ApplicationConstants.java b/shared/src/main/java/com/vaadin/shared/ApplicationConstants.java
index 423e89645a..17ef828ba5 100644
--- a/shared/src/main/java/com/vaadin/shared/ApplicationConstants.java
+++ b/shared/src/main/java/com/vaadin/shared/ApplicationConstants.java
@@ -179,4 +179,9 @@ public class ApplicationConstants implements Serializable {
*/
public static final String WIDGETSET_VERSION_ID = "wsver";
+ /**
+ * Content type to use for text/html responses (should always be UTF-8).
+ */
+ public static final String CONTENT_TYPE_TEXT_HTML_UTF_8 = "text/html; charset=utf-8";
+
}