Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 93aa217

Browse files
authored
Merge pull request #89 from browserup/recognize-additional-json-content-type-variants
Add recognition of variant json content type strings
2 parents 9a11271 + d0f951d commit 93aa217

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

browserup-proxy-core/src/main/java/com/browserup/bup/util/BrowserUpHttpUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ public static boolean hasTextualContent(String contentType) {
172172
contentType.startsWith("application/javascript") ||
173173
contentType.startsWith("application/json") ||
174174
contentType.startsWith("application/xml") ||
175-
contentType.startsWith("application/xhtml+xml")
175+
contentType.startsWith("application/xhtml+xml") ||
176+
(contentType.startsWith("application/") && contentType.endsWith("+json"))
176177
);
177178
}
178179

0 commit comments

Comments
 (0)