knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject knox git commit: KNOX-1401 - Add HAL+JSON To the List of JSON Content Types (William Watson via Sandeep More)
Date Thu, 26 Jul 2018 15:01:03 GMT
Repository: knox
Updated Branches:
  refs/heads/master aa587bb82 -> e9612fcc9


KNOX-1401 - Add HAL+JSON To the List of JSON Content Types (William Watson via Sandeep More)


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/e9612fcc
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/e9612fcc
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/e9612fcc

Branch: refs/heads/master
Commit: e9612fcc9c9d278bef06bc1ad9a59bf87799d535
Parents: aa587bb
Author: Sandeep More <more@apache.org>
Authored: Thu Jul 26 11:00:54 2018 -0400
Committer: Sandeep More <more@apache.org>
Committed: Thu Jul 26 11:00:54 2018 -0400

----------------------------------------------------------------------
 .../filter/rewrite/impl/json/JsonUrlRewriteStreamFilter.java  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/e9612fcc/gateway-provider-rewrite/src/main/java/org/apache/knox/gateway/filter/rewrite/impl/json/JsonUrlRewriteStreamFilter.java
----------------------------------------------------------------------
diff --git a/gateway-provider-rewrite/src/main/java/org/apache/knox/gateway/filter/rewrite/impl/json/JsonUrlRewriteStreamFilter.java
b/gateway-provider-rewrite/src/main/java/org/apache/knox/gateway/filter/rewrite/impl/json/JsonUrlRewriteStreamFilter.java
index bebc616..f29d248 100644
--- a/gateway-provider-rewrite/src/main/java/org/apache/knox/gateway/filter/rewrite/impl/json/JsonUrlRewriteStreamFilter.java
+++ b/gateway-provider-rewrite/src/main/java/org/apache/knox/gateway/filter/rewrite/impl/json/JsonUrlRewriteStreamFilter.java
@@ -29,7 +29,12 @@ import java.io.InputStreamReader;
 
 public class JsonUrlRewriteStreamFilter implements UrlRewriteStreamFilter {
 
-  private static String[] TYPES = new String[]{ "application/json", "text/json", "*/json"
};
+  private static String[] TYPES = new String[]{
+    "application/json",
+    "text/json",
+    "*/json",
+    "application/hal+json"
+  };
   private static String[] NAMES = new String[]{ null };
 
   @Override


Mime
View raw message