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>
<groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<version>2.37.0</version>
<version>2.23</version>
</dependency>
<dependency>
<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 AudibleClient() {
super(BrowserVersion.BEST_SUPPORTED);
super();
this.getOptions().setThrowExceptionOnScriptError(false);
this.getOptions().setMaxInMemory(1024 * 1024);
assert (this.getOptions().isRedirectEnabled());