Skip to content

Commit 6fa7193

Browse files
committed
Downgrade to javalin 4 (since version 5 is incompatible with Java 8)
1 parent fc6caf0 commit 6fa7193

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<httpclient5.version>5.1.3</httpclient5.version>
1616

1717
<!-- provided -->
18-
<javalin.version>5.1.3</javalin.version>
18+
<javalin.version>4.6.7</javalin.version>
1919
<selenium.version>4.5.3</selenium.version>
2020

2121
<!-- test -->

src/main/java/io/github/bonigarcia/wdm/WdmServer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private String getLocalHostAddress() {
124124
}
125125

126126
private void handleRequest(Context ctx) throws IOException {
127-
String requestMethod = ctx.method().name();
127+
String requestMethod = ctx.method();
128128
String requestPath = ctx.path();
129129
log.info("Request: {} {}", requestMethod, requestPath);
130130

@@ -140,7 +140,7 @@ private void handleRequest(Context ctx) throws IOException {
140140
}
141141

142142
private void seleniumServer(Context ctx) throws IOException {
143-
String requestMethod = ctx.method().name();
143+
String requestMethod = ctx.method();
144144
String requestPath = ctx.path().replace(path, "");
145145
String requestBody = ctx.body();
146146
log.trace("Body: {} ", requestBody);
@@ -257,7 +257,7 @@ private synchronized void resolveDriver(Context ctx,
257257
String driverLength = String.valueOf(driver.length());
258258

259259
// Response
260-
ctx.res().setHeader("Content-Disposition",
260+
ctx.res.setHeader("Content-Disposition",
261261
"attachment; filename=\"" + driverName + "\"");
262262
ctx.result(openInputStream(driver));
263263
log.info("Server response: {} {} ({} bytes)", driverName, driverVersion,

0 commit comments

Comments
 (0)