Skip to content

Commit 963f7ef

Browse files
author
Stephane Landelle
committed
1 parent ccd3eb5 commit 963f7ef

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

api/src/main/java/org/asynchttpclient/ntlm/NTLMEngine.java

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -990,24 +990,25 @@ String getResponse() {
990990

991991
/** Type 1 message assembly class */
992992
static class Type1Message extends NTLMMessage {
993-
protected byte[] hostBytes;
994-
protected byte[] domainBytes;
993+
// FIXME see https://issues.apache.org/jira/browse/HTTPCLIENT-1557
994+
// protected byte[] hostBytes;
995+
// protected byte[] domainBytes;
995996

996997
/** Constructor. Include the arguments the message will need */
997998
Type1Message(final String domain, final String host) throws NTLMEngineException {
998-
super();
999-
try {
1000-
// Strip off domain name from the host!
1001-
final String unqualifiedHost = convertHost(host);
1002-
// Use only the base domain name!
1003-
final String unqualifiedDomain = convertDomain(domain);
1004-
1005-
hostBytes = unqualifiedHost != null? unqualifiedHost.getBytes("ASCII") : null;
1006-
domainBytes = unqualifiedDomain != null ? unqualifiedDomain
1007-
.toUpperCase(Locale.ENGLISH).getBytes("ASCII") : null;
1008-
} catch (final UnsupportedEncodingException e) {
1009-
throw new NTLMEngineException("Unicode unsupported: " + e.getMessage(), e);
1010-
}
999+
// super();
1000+
// try {
1001+
// // Strip off domain name from the host!
1002+
// final String unqualifiedHost = convertHost(host);
1003+
// // Use only the base domain name!
1004+
// final String unqualifiedDomain = convertDomain(domain);
1005+
//
1006+
// hostBytes = unqualifiedHost != null? unqualifiedHost.getBytes("ASCII") : null;
1007+
// domainBytes = unqualifiedDomain != null ? unqualifiedDomain
1008+
// .toUpperCase(Locale.ENGLISH).getBytes("ASCII") : null;
1009+
// } catch (final UnsupportedEncodingException e) {
1010+
// throw new NTLMEngineException("Unicode unsupported: " + e.getMessage(), e);
1011+
// }
10111012
}
10121013

10131014
/**

0 commit comments

Comments
 (0)