Permalink
Browse files

Fix upgradeHead bounds.

  • Loading branch information...
1 parent 311d7de commit 6ad18a27a0bf9a8f0c6d618c0011f2264239af04 @miksago miksago committed with ry Apr 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http.js
View
@@ -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;

0 comments on commit 6ad18a2

Please sign in to comment.