hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject httpcomponents-core git commit: [HTTPCORE-494] Add image constants to ContentType.
Date Thu, 05 Oct 2017 18:10:00 GMT
Repository: httpcomponents-core
Updated Branches:
  refs/heads/4.4.x 01ec110cf -> 1e0ba1011


[HTTPCORE-494] Add image constants to ContentType.

Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/1e0ba101
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/1e0ba101
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/1e0ba101

Branch: refs/heads/4.4.x
Commit: 1e0ba1011f5686dbd89a8e2f6caa1d6198f910ae
Parents: 01ec110
Author: Gary Gregory <garydgregory@gmail.com>
Authored: Thu Oct 5 12:09:58 2017 -0600
Committer: Gary Gregory <garydgregory@gmail.com>
Committed: Thu Oct 5 12:09:58 2017 -0600

----------------------------------------------------------------------
 httpcore/src/main/java/org/apache/http/entity/ContentType.java | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/1e0ba101/httpcore/src/main/java/org/apache/http/entity/ContentType.java
----------------------------------------------------------------------
diff --git a/httpcore/src/main/java/org/apache/http/entity/ContentType.java b/httpcore/src/main/java/org/apache/http/entity/ContentType.java
index 874a095..8398ddb 100644
--- a/httpcore/src/main/java/org/apache/http/entity/ContentType.java
+++ b/httpcore/src/main/java/org/apache/http/entity/ContentType.java
@@ -91,6 +91,10 @@ public final class ContentType implements Serializable {
             "image/jpeg");
     public static final ContentType IMAGE_PNG = create(
             "image/png");
+    public static final ContentType IMAGE_SVG= create(
+            "image/svg+xml");
+    public static final ContentType IMAGE_TIFF = create(
+            "image/tiff");
     public static final ContentType IMAGE_WEBP = create(
             "image/webp");
     public static final ContentType MULTIPART_FORM_DATA = create(
@@ -119,6 +123,8 @@ public final class ContentType implements Serializable {
             IMAGE_GIF,
             IMAGE_JPEG,
             IMAGE_PNG,
+            IMAGE_SVG,
+            IMAGE_TIFF,
             IMAGE_WEBP,
             MULTIPART_FORM_DATA,
             TEXT_HTML,


Mime
View raw message