diff options
author | Joshaven Potter <yourtech@gmail.com> | 2010-10-07 07:05:23 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-10-07 07:40:57 +0400 |
commit | 3d4e4d89099f1c08e586060961ed884e5f52301a (patch) | |
tree | 7d15462001773751a6831479f8faac8c1707590e /lib/http.js | |
parent | 9481bc1009765b24390239a1d7d88bebae5db731 (diff) |
syntax fixes to pass jslint
Diffstat (limited to 'lib/http.js')
-rwxr-xr-x | lib/http.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/http.js b/lib/http.js index dc7901b41bd..b56854ad83f 100755 --- a/lib/http.js +++ b/lib/http.js @@ -235,9 +235,9 @@ IncomingMessage.prototype.resume = function () { IncomingMessage.prototype._addHeaderLine = function (field, value) { var dest; if (this.complete) { - dest = this.trailers + dest = this.trailers; } else { - dest = this.headers + dest = this.headers; } switch (field) { // Array headers: @@ -317,8 +317,8 @@ OutgoingMessage.prototype._send = function (data, encoding) { } this._headerSent = true; } - this._writeRaw(data, encoding) -} + this._writeRaw(data, encoding); +}; OutgoingMessage.prototype._writeRaw = function(data, encoding) { if (this.connection._outgoing[0] === this && this.connection.writable) { @@ -606,7 +606,7 @@ exports.ServerResponse = ServerResponse; ServerResponse.prototype.writeContinue = function () { this._writeRaw("HTTP/1.1 100 Continue" + CRLF + CRLF, 'ascii'); this._sent100 = true; -} +}; ServerResponse.prototype.writeHead = function (statusCode) { var reasonPhrase, headers, headerIndex; @@ -769,7 +769,7 @@ sys.inherits(Server, net.Server); Server.prototype.setSecure = function (credentials) { this.secure = true; this.credentials = credentials; -} +}; exports.Server = Server; @@ -875,7 +875,7 @@ function connectionListener (socket) { && continueExpression.test(req.headers['expect'])) { res._expect_continue = true; if (self.listeners("checkContinue").length) { - self.emit("checkContinue", req, res) + self.emit("checkContinue", req, res); } else { res.writeContinue(); self.emit('request', req, res); @@ -905,7 +905,7 @@ function Client ( ) { } else if (self.parser.incoming && self.parser.incoming.upgrade) { var bytesParsed = ret; self.ondata = null; - self.onend = null + self.onend = null; var req = self.parser.incoming; @@ -1008,9 +1008,9 @@ Client.prototype._initParser = function () { // All that should be required for keep-alive is to not reconnect, // but outgoingFlush instead. if (req.shouldKeepAlive) { - outgoingFlush(self) - self._outgoing.shift() - outgoingFlush(self) + outgoingFlush(self); + self._outgoing.shift(); + outgoingFlush(self); } else { self.end(); } |