Skip to content

Commit b6eafd4

Browse files
committed
Use constant
1 parent 0566970 commit b6eafd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/main/java/org/asynchttpclient/RequestBuilder.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*/
1616
package org.asynchttpclient;
1717

18+
import io.netty.handler.codec.http.HttpMethod;
19+
1820
/**
1921
* Builder for a {@link Request}. Warning: mutable and not thread-safe! Beware
2022
* that it holds a reference on the Request instance it builds, so modifying the
@@ -23,7 +25,7 @@
2325
public class RequestBuilder extends RequestBuilderBase<RequestBuilder> {
2426

2527
public RequestBuilder() {
26-
this("GET");
28+
this(HttpMethod.GET.name());
2729
}
2830

2931
public RequestBuilder(String method) {

0 commit comments

Comments
 (0)