Skip to content

Commit e3ec8ae

Browse files
committed
Merge branch 'make-request-object-have-sensible-default-13' of https://github.com/belfazt/java-http-client into make-request-object-have-sensible-default-13
2 parents 05d2baa + 70876ae commit e3ec8ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ request.addQueryParam("offset", "0");
8383
request.setBody("{\"name\": \"My Request Body\"}");
8484
request.setMethod(Method.POST);
8585
String param = "param";
86-
request.endpoint = "/your/api/" + param + "/call";
86+
request.setEndpoint("/your/api/" + param + "/call");
8787

8888
try {
8989
Response response = client.api(request);

0 commit comments

Comments
 (0)