Skip to content

Commit

Permalink
Fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed May 5, 2010
1 parent 3892628 commit 453c9e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ function Client ( ) {

self.addListener("connect", function () {
if (this.https) {
this.setSecure(this.credentials);
this.setSecure(this.credentials);
} else {
parser.reinitialize('response');
debug('requests: ' + sys.inspect(requests));
Expand Down Expand Up @@ -780,7 +780,7 @@ exports.cat = function (url, encoding_, headers_) {
}

var url = require("url").parse(url);

var hasHost = false;
if (headers instanceof Array) {
for (var i = 0, l = headers.length; i < l; i++) {
Expand All @@ -802,7 +802,7 @@ exports.cat = function (url, encoding_, headers_) {
if (!hasHost) headers["Host"] = url.hostname;

var content = "";

var client = exports.createClient(url.port || 80, url.hostname);
var req = client.request((url.pathname || "/")+(url.search || "")+(url.hash || ""), headers);

Expand Down

0 comments on commit 453c9e6

Please sign in to comment.