projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
311d7de
)
Fix upgradeHead bounds.
author
Micheil Smith
<micheil@brandedcode.com>
Thu, 15 Apr 2010 18:19:54 +0000
(11:19 -0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Thu, 15 Apr 2010 18:19:54 +0000
(11:19 -0700)
lib/http.js
patch
|
blob
|
history
diff --git
a/lib/http.js
b/lib/http.js
index
68b4fa2
..
1bb2e96
100644
(file)
--- 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;