fix html unit compile error

This commit is contained in:
OpenAudible 2020-09-10 12:51:50 -07:00
parent 05517cb288
commit 2fda9acada
2 changed files with 2 additions and 2 deletions

View file

@ -159,7 +159,7 @@
<dependency> <dependency>
<groupId>net.sourceforge.htmlunit</groupId> <groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId> <artifactId>htmlunit</artifactId>
<version>2.37.0</version> <version>2.23</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.code.gson</groupId> <groupId>com.google.code.gson</groupId>

View file

@ -35,7 +35,7 @@ public class AudibleClient extends WebClient {
public static String swtWindows = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; Trident/7.0; rv:11.0) like Gecko"; public static String swtWindows = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; Trident/7.0; rv:11.0) like Gecko";
public AudibleClient() { public AudibleClient() {
super(BrowserVersion.BEST_SUPPORTED); super();
this.getOptions().setThrowExceptionOnScriptError(false); this.getOptions().setThrowExceptionOnScriptError(false);
this.getOptions().setMaxInMemory(1024 * 1024); this.getOptions().setMaxInMemory(1024 * 1024);
assert (this.getOptions().isRedirectEnabled()); assert (this.getOptions().isRedirectEnabled());