Skip to content

Commit 2a7c44b

Browse files
committed
cleaned up whitespace
1 parent 7bb6829 commit 2a7c44b

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

lib/XMLHttpRequest.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -384,21 +384,20 @@ exports.XMLHttpRequest = function() {
384384
response = resp;
385385

386386
if(response.statusCode === 302){
387-
settings.url = response.headers['location']
388-
var url = Url.parse(settings.url);
389-
host = url.hostname
390-
var newOptions = {
391-
hostname: url.hostname,
392-
port: url.port,
393-
path: url.path,
394-
method: settings.method,
395-
headers: headers
396-
}
397-
398-
request = doRequest(newOptions, responseHandler).on('error', errorHandler);
399-
request.end()
400-
return
401-
}
387+
settings.url = response.headers['location']
388+
var url = Url.parse(settings.url);
389+
host = url.hostname
390+
var newOptions = {
391+
hostname: url.hostname,
392+
port: url.port,
393+
path: url.path,
394+
method: settings.method,
395+
headers: headers
396+
}
397+
398+
request = doRequest(newOptions, responseHandler).on('error', errorHandler);
399+
request.end()
400+
}
402401

403402
response.setEncoding("utf8");
404403

0 commit comments

Comments
 (0)