Browse Source

Fix upgradeHead bounds.

v0.7.4-release
Micheil Smith 15 years ago
committed by Ryan Dahl
parent
commit
6ad18a27a0
  1. 2
      lib/http.js

2
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;

Loading…
Cancel
Save