diff --git a/lib/ntlmrequest.js b/lib/ntlmrequest.js
index <HASH>..<HASH> 100644
--- a/lib/ntlmrequest.js
+++ b/lib/ntlmrequest.js
@@ -75,8 +75,8 @@ function ntlmRequest(opts) {
 
 				if (supportedAuthSchemes.indexOf('ntlm') !== -1) {
 					authHeader = ntlm.createType1Message();
-				} else if (supportedAuthSchemes.indexOf('basic')) {
-					authHeader = 'Basic ' + new Buffer(opts.username + ':' + opts.passsword).toString('base64');
+				} else if (supportedAuthSchemes.indexOf('basic') !== -1) {
+					authHeader = 'Basic ' + new Buffer(opts.username + ':' + opts.password).toString('base64');
 					ntlmState.status = 2;
 				} else {
 					return reject(new Error('Could not negotiate on an authentication scheme'));
@@ -128,4 +128,4 @@ function ntlmRequest(opts) {
 	return new Promise(sendRequest);
 }
 
-module.exports = ntlmRequest;
\ No newline at end of file
+module.exports = ntlmRequest;
Fix basic auth check and password variable