From 6ad18a27a0bf9a8f0c6d618c0011f2264239af04 Mon Sep 17 00:00:00 2001 From: Micheil Smith Date: Thu, 15 Apr 2010 11:19:54 -0700 Subject: [PATCH] Fix upgradeHead bounds. --- lib/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http.js b/lib/http.js index 68b4fa2bbf..1bb2e96e91 100644 --- a/lib/http.js +++ b/lib/http.js @@ -523,7 +523,7 @@ function connectionListener (socket) { socket.ondata = function (d, start, end) { var bytesParsed = parser.execute(d, start, end - start); if (parser.incoming && parser.incoming.upgrade) { - var upgradeHead = d.slice(start + bytesParsed, end - start); + var upgradeHead = d.slice(start + bytesParsed, end); parser.incoming.upgradeHead = upgradeHead; socket.ondata = null; socket.onend = null;