diff options
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 dc7901b41b..b56854ad83 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(); } |