KNOX-1401 - Add HAL+JSON To the List of JSON Content Types (William Watson via Sandee...
authorSandeep More <more@apache.org>
Thu, 26 Jul 2018 15:00:54 +0000 (11:00 -0400)
committerSandeep More <more@apache.org>
Thu, 26 Jul 2018 15:00:54 +0000 (11:00 -0400)
gateway-provider-rewrite/src/main/java/org/apache/knox/gateway/filter/rewrite/impl/json/JsonUrlRewriteStreamFilter.java

index bebc616..f29d248 100644 (file)
@@ -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