@@ -124,7 +124,7 @@ private String getLocalHostAddress() {
124
124
}
125
125
126
126
private void handleRequest (Context ctx ) throws IOException {
127
- String requestMethod = ctx .method (). name () ;
127
+ String requestMethod = ctx .method ();
128
128
String requestPath = ctx .path ();
129
129
log .info ("Request: {} {}" , requestMethod , requestPath );
130
130
@@ -140,7 +140,7 @@ private void handleRequest(Context ctx) throws IOException {
140
140
}
141
141
142
142
private void seleniumServer (Context ctx ) throws IOException {
143
- String requestMethod = ctx .method (). name () ;
143
+ String requestMethod = ctx .method ();
144
144
String requestPath = ctx .path ().replace (path , "" );
145
145
String requestBody = ctx .body ();
146
146
log .trace ("Body: {} " , requestBody );
@@ -257,7 +257,7 @@ private synchronized void resolveDriver(Context ctx,
257
257
String driverLength = String .valueOf (driver .length ());
258
258
259
259
// Response
260
- ctx .res () .setHeader ("Content-Disposition" ,
260
+ ctx .res .setHeader ("Content-Disposition" ,
261
261
"attachment; filename=\" " + driverName + "\" " );
262
262
ctx .result (openInputStream (driver ));
263
263
log .info ("Server response: {} {} ({} bytes)" , driverName , driverVersion ,
0 commit comments