isaacs
e8500274e0
Revert "http: remove bodyHead from 'upgrade' events"
This reverts commit a40133d10c
.
Unfortunately, this breaks socket.io. Even though it's not strictly an
API change, it is too subtle and in too brittle an area of node, to be
done in a stable branch.
Conflicts:
doc/api/http.markdown
12 years ago
Nathan Zadoks
a40133d10c
http: remove bodyHead from 'upgrade' events
Streams2 makes this unnecessary.
An empty buffer is provided for compatibility.
12 years ago
Ben Noordhuis
018e110cd1
test: replace .addListener() calls with .on()
13 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Oleg Efimov
093dfaf801
GJSLint all tests, only 3 long lines left in test-url.js
test/simple/test-url.js:31:(0110) Line too long (82 characters).
test/simple/test-url.js:39:(0110) Line too long (85 characters).
test/simple/test-url.js:40:(0110) Line too long (92 characters).
14 years ago
Ryan Dahl
a0159b4b29
Fix global leaks
14 years ago
Ryan Dahl
3fceb491d4
Style
14 years ago
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
14 years ago
Ryan Dahl
9fd5e3c89c
Update tests to work with module contexts
15 years ago
Peter Griess
187f191558
Support 'upgrade' event in HTTP client.
- Add a unit test for client HTTP upgrade.
- Move around unit tests for server HTTP upgrade.
15 years ago
Ryan Dahl
6bed15e074
Refactor: Utf8Decoder -> StringDecoder
Instead of just decoding Utf8, this will proxy requests to buffer.toString()
for other encodings. This makes for a simpler interface.
15 years ago
Ryan Dahl
14414f81f3
Soft deprecation of 'listening' event.
Add callback param to listen() instead
15 years ago
Micheil Smith
aee226b243
Fixing the 1 byte off error in http.Server's upgradeHead
(And fix up some style issues)
15 years ago
Micheil Smith
f990f24ad3
Implementing the event emit for Upgrade requests, with tests.
15 years ago