Skip to content

Commit d02687d

Browse files
committed
Corrected the use of the wrong request object in the example
1 parent 679991a commit d02687d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientFormLogin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static void main(final String[] args) throws Exception {
7272
.addParameter("IDToken1", "username")
7373
.addParameter("IDToken2", "password")
7474
.build();
75-
httpclient.execute(httpget, response -> {
75+
httpclient.execute(login, response -> {
7676
System.out.println("----------------------------------------");
7777
System.out.println("Login form get: " + response.getCode() + " " + response.getReasonPhrase());
7878
EntityUtils.consume(response.getEntity());

0 commit comments

Comments
 (0)