Skip to content

Commit acdb7e4

Browse files
author
Stephane Landelle
committed
1 parent 83d5db0 commit acdb7e4

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

src/main/java/com/ning/http/client/ntlm/NTLMEngine.java

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

969969
/** Type 1 message assembly class */
970970
static class Type1Message extends NTLMMessage {
971-
protected byte[] hostBytes;
972-
protected byte[] domainBytes;
971+
// FIXME https://issues.apache.org/jira/browse/HTTPCLIENT-1557
972+
// protected byte[] hostBytes;
973+
// protected byte[] domainBytes;
973974

974975
/** Constructor. Include the arguments the message will need */
975976
Type1Message(final String domain, final String host) throws NTLMEngineException {
976-
super();
977-
try {
978-
// Strip off domain name from the host!
979-
final String unqualifiedHost = convertHost(host);
980-
// Use only the base domain name!
981-
final String unqualifiedDomain = convertDomain(domain);
982-
983-
hostBytes = unqualifiedHost != null? unqualifiedHost.getBytes("ASCII") : null;
984-
domainBytes = unqualifiedDomain != null ? unqualifiedDomain
985-
.toUpperCase(Locale.ENGLISH).getBytes("ASCII") : null;
986-
} catch (final UnsupportedEncodingException e) {
987-
throw new NTLMEngineException("Unicode unsupported: " + e.getMessage(), e);
988-
}
977+
// super();
978+
// try {
979+
// // Strip off domain name from the host!
980+
// final String unqualifiedHost = convertHost(host);
981+
// // Use only the base domain name!
982+
// final String unqualifiedDomain = convertDomain(domain);
983+
//
984+
// hostBytes = unqualifiedHost != null? unqualifiedHost.getBytes("ASCII") : null;
985+
// domainBytes = unqualifiedDomain != null ? unqualifiedDomain
986+
// .toUpperCase(Locale.ENGLISH).getBytes("ASCII") : null;
987+
// } catch (final UnsupportedEncodingException e) {
988+
// throw new NTLMEngineException("Unicode unsupported: " + e.getMessage(), e);
989+
// }
989990
}
990991

991992
/**

0 commit comments

Comments
 (0)