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:06:55 GMT
Repository: httpcomponents-core
Updated Branches:
  refs/heads/master 1c17e24cb -> 48f8bb20a


[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/48f8bb20
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/48f8bb20
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/48f8bb20

Branch: refs/heads/master
Commit: 48f8bb20a8fe6701d81c9e31a6326d9608ab3a2e
Parents: 1c17e24
Author: Gary Gregory <garydgregory@gmail.com>
Authored: Thu Oct 5 12:06:53 2017 -0600
Committer: Gary Gregory <garydgregory@gmail.com>
Committed: Thu Oct 5 12:06:53 2017 -0600

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


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/48f8bb20/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java b/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java
index 2638d58..4e48d8d 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java
@@ -86,6 +86,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(
@@ -114,6 +118,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