Skip to content

Commit 5f98528

Browse files
committed
[bidi][java] Use enum for HttpMethod
1 parent 41e6384 commit 5f98528

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

java/src/org/openqa/selenium/bidi/network/ContinueRequestParameters.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
package org.openqa.selenium.bidi.network;
1919

20+
import org.openqa.selenium.remote.http.HttpMethod;
21+
2022
import java.util.HashMap;
2123
import java.util.List;
2224
import java.util.Map;
@@ -48,8 +50,8 @@ public ContinueRequestParameters headers(List<Header> headers) {
4850
return this;
4951
}
5052

51-
public ContinueRequestParameters method(String method) {
52-
map.put("method", method);
53+
public ContinueRequestParameters method(HttpMethod method) {
54+
map.put("method", method.toString());
5355
return this;
5456
}
5557

0 commit comments

Comments
 (0)