Skip to content

Commit

Permalink
"text/javascript" is the correct mime type; "application/javascript" …
Browse files Browse the repository at this point in the history
…is obsolete (issue #710)
  • Loading branch information
rbri committed Jan 19, 2024
1 parent 0284baf commit 9f4888e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/org/htmlunit/IncorrectnessListenerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public void notify(final String message, final Object origin) {
webClient.getPage(URL_FIRST);

final String[] expectedIncorrectness = {
"Obsolete content type encountered: 'application/x-javascript'."
"Obsolete content type encountered: 'application/x-javascript' for "
+ "remotely loaded JavaScript element at 'http://localhost:22222/script.js'."
};
assertEquals(expectedIncorrectness, collectedIncorrectness);
}
Expand Down

0 comments on commit 9f4888e

Please sign in to comment.