From f9b46db6e0d7bbd753bce13e90f70ecf12713e45 Mon Sep 17 00:00:00 2001 From: Varun Sivapalan <5470233+sivapalan@users.noreply.github.com> Date: Tue, 6 Oct 2020 10:09:44 +0200 Subject: [PATCH] Fix typo in enum --- .../org/apache/hc/client5/http/impl/auth/NTLMScheme.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/NTLMScheme.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/NTLMScheme.java index 53c4a7b3b..d00644e9c 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/NTLMScheme.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/NTLMScheme.java @@ -58,7 +58,7 @@ public final class NTLMScheme implements AuthScheme { UNINITIATED, CHALLENGE_RECEIVED, MSG_TYPE1_GENERATED, - MSG_TYPE2_RECEVIED, + MSG_TYPE2_RECEIVED, MSG_TYPE3_GENERATED, FAILED, } @@ -116,7 +116,7 @@ public final class NTLMScheme implements AuthScheme { this.state = State.FAILED; throw new MalformedChallengeException("Out of sequence NTLM response message"); } else if (this.state == State.MSG_TYPE1_GENERATED) { - this.state = State.MSG_TYPE2_RECEVIED; + this.state = State.MSG_TYPE2_RECEIVED; } } } @@ -163,7 +163,7 @@ public final class NTLMScheme implements AuthScheme { this.credentials.getNetbiosDomain(), this.credentials.getWorkstation()); this.state = State.MSG_TYPE1_GENERATED; - } else if (this.state == State.MSG_TYPE2_RECEVIED) { + } else if (this.state == State.MSG_TYPE2_RECEIVED) { response = this.engine.generateType3Msg( this.credentials.getUserName(), this.credentials.getPassword(),