Skip to content

Commit

Permalink
identifying text/javascript as content type for JS.
Browse files Browse the repository at this point in the history
  • Loading branch information
subwiz committed Jul 28, 2016
1 parent 84c1abc commit 585b181
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ public static boolean isJsonContentType(final String contentType) {
public static boolean isJsContentType(final String contentType) {
final String ct = getContentTypeBeforeSemiColon(contentType);
return ct.startsWith("application/javascript")
|| ct.startsWith("application/x-javascript");
|| ct.startsWith("application/x-javascript")
|| ct.startsWith("text/javascript");
}

public static boolean isCssContentType(final String contentType) {
Expand Down

0 comments on commit 585b181

Please sign in to comment.