Trent Mick
a8f96d3314
http: fix setting ServerResponse.statusCode in writeHead
Fixes #1374 .
13 years ago
Yoshihiro Kikuchi
d3d776f978
test: added test/simple/test-fs-watch-file.js
13 years ago
Ben Noordhuis
0c396c05fd
test: beef up checks in test-http-unix-socket.js, add to `make test-uv`
13 years ago
isaacs
588d885e81
Close #1357 Load json files with require()
Signed off by everybody.
13 years ago
Ben Noordhuis
1b0e054737
url: throw descriptive error if url argument to parse() is not a string
Fixes #568 .
13 years ago
isaacs
ddfc6b78cc
Close #1360 url: Allow _ in hostnames.
13 years ago
isaacs
dcecfc5f1b
Close #1360 url: Allow _ in hostnames.
13 years ago
Reid Burke
973153d1cc
Properly respond to HEAD during end(body) hot path
During write(), _hasBody is checked to make sure a body
is allowed -- this is now also checked during end(body)
when write() isn't used.
Concise final chunk for HEAD req's res.end(data).
Instead of simply clearing data, check _hasBody
earlier to avoid sending cruft when chunkedEncoding
is used.
Fixes #1291 .
14 years ago
Steve Engledow
292345fe62
Improve --help message and Fix -e/--eval switch
--help should at least give some hint that node takes the -e switch
Update help message to include -e and swap eval block with module load block so argv works correctly
[steve@sane node](master)$ ./node -e 'process.argv' foo bar
[ '/home/steve/code/node/node', 'foo', 'bar' ]
:)
Add simple test for -e option.
Fixes #1311 .
14 years ago
isaacs
7f0047c2d5
Close #1348 Remove require.paths
Module.globalPaths is still set to a read-only copy of the global
include paths pulled off of the NODE_PATH environment variable.
It's important to be able to inspect this, but modifying it no longer
has any effect.
13 years ago
Ryan Dahl
f5a7de1ea7
windows: fix simple/test-executable-path
13 years ago
Elijah Insua
b722aaa8c5
Close #1303 Stream.pipe returns the destination
Squashed:
* Simple change to make Stream.pipe(destination) return the destination Stream
* Test: ensure Stream.pipe(destination) returns the destination Stream
* updated Stream.pipe() documentation to reflect that it now returns the
destination stream
14 years ago
isaacs
9b5098f509
Close #1281 Make require a public member of module
Reviewed by @felixge
13 years ago
Henry Rawas
876712a074
test-tcp-wrap dont assume port 80 priveleged'
13 years ago
koichik
8caf7fdb05
Add tests for #1085 and #1304
Fixes #1327 .
13 years ago
koichik
5208abe723
Fix Buffer drops last null character in UTF-8
Reproduce:
$ node
> buf = new Buffer('\0')
<Buffer >
> buf.length
0
> buf = new Buffer(1)
<Buffer 28>
> buf.write('\0')
0
Fixes #394 .
Fixes #1210 .
14 years ago
koichik
5f97c9a005
Improvements AssertionError message
Fixes #217 .
14 years ago
Henry Rawas
9057d3f17e
fix isip test
13 years ago
koichik
8faf941109
Fixes #1267 .
Error message of JSON.parse() was changed.
14 years ago
Henry Rawas
1018e7d23f
isIP test
14 years ago
Henry Rawas
b6f6a1ca11
ipv6 node
14 years ago
Ben Noordhuis
b62ecdc5bb
Revert 3e2a2a7
. Always send a HTTP/1.1 status line to the client.
14 years ago
Ben Noordhuis
3e8667d829
Revert 8dc8773
. Always send a HTTP/1.1 status line to the client.
14 years ago
Jeremy Selier
2a848fa727
Close #1149 IDNA and Punycode support in url.parse
Using @bnoordhuis's punycode lib.
Close #1174 also
14 years ago
Ryan Dahl
8b2f5af2a0
Revert "Fixes #1267."
Revert due to V8 downgrade.
This reverts commit 04c9169892
.
14 years ago
Ryan Dahl
64a06c5ffd
Revert "Error argument for http.ServerRequest 'close'"
Too slow.
This reverts commit e7ac6d8fcd
.
14 years ago
Ben Noordhuis
f087206067
Verify that the argument passed to vm.runInContext() is a context object.
Fixes #558 .
14 years ago
Ryan Dahl
ede1acc1ed
Revert "Remove 'connect' event from server side sockets"
Fixes #1276
This reverts commit f0a440d886
.
14 years ago
Ryan Dahl
d964b4c5aa
net_uv: enable another test case in test-net-pingpong
14 years ago
Ben Noordhuis
1e6b72e8cb
Test case for issue #1228 : errno masked in fs.openSync().
14 years ago
Ben Noordhuis
3e2a2a76fd
Test cases for #1234 : don't send HTTP/1.1 responses to HTTP/1.0 clients.
14 years ago
Ben Noordhuis
c6846565cf
Clean up temporary file on exit.
Unbreaks test/simple/test-http-get-pipeline-problem.js,
it assumed a fixed number of files in the tmp directory.
14 years ago
Ben Noordhuis
222f85fdf4
Test cases for #1234 : don't send HTTP/1.1 responses to HTTP/1.0 clients.
14 years ago
Ben Noordhuis
092fc42fbf
Clean up temporary file on exit.
Unbreaks test/simple/test-http-get-pipeline-problem.js,
it assumed a fixed number of files in the tmp directory.
14 years ago
Bert Belder
858f23094e
Bindings for libuv-integrated c-ares
14 years ago
Adam Luikart
7f30f13543
Update POSIX splitPathRe to allow control chars. Fixes #1230 .
Use [\s\S] instead of . to match any char, including newlines.
14 years ago
koichik
04c9169892
Fixes #1267 .
Error message of JSON.parse() was changed.
14 years ago
koichik
c60cdcda4e
Fix net.Socket.connect argument parsing
Fixes #1251 .
14 years ago
Ben Noordhuis
8e0d788842
Test for #402 : writing base64 at position > 0 should not mangle the result.
This is a regression test, the bug itself was fixed in v0.3.x.
14 years ago
Ryan Dahl
6d8b43c366
http: Fix agent id creation
Unbreaks test-regress-GH-877.js
14 years ago
Ryan Dahl
69d20f5352
use_uv: Correct readyState on connecting
14 years ago
Ryan Dahl
efca5456b8
Fixes #877 . Don't wait for socket pool to establish connections.
Thanks to Yann Biancheri for putting together an initial test.
14 years ago
Ryan Dahl
20996dbc2b
Revert "Add support for file descriptor type detection."
This reverts commit 911cbd0cef
.
This patch is broken on Linux and I don't want to think about the
functionality during the Windows port. We can reconsider it after v0.6.
14 years ago
Ryan Dahl
8cb5338f35
Fix test-tcp-wrap-listen
14 years ago
Henry Rawas
47a5d93256
Fix test-net-pingpong.js on windows
14 years ago
koichik
6c121edc60
Fix mismatch createConnection and Socket.connect
net.createConnection() is wrapper for net.Socket.connect(),
but There is mismatch between them.
net.createConnection(port, [host])
net.Socket.connect(port, [host], [callback])
Fixes #1208 .
14 years ago
Ben Noordhuis
c626f8bd8f
Test case for issue #1218 : uncatchable exception on TLS connection error.
14 years ago
koichik
d6ec8f668e
Fix -e/--eval can't load module from node_modules
With -e or --eval, require() can load module using relative path.
node -e 'require("./foo")'
But it can't load module from node_modules directory.
node -e 'require("foo")'
Fixes #1196 .
14 years ago
Ben Noordhuis
5c38163787
Fixes #1197 . Fix failing os.getNetworkInterfaces() test in test-os.js
14 years ago
Ryan Dahl
9696c27c45
tcp_wrap: implement shutdown
14 years ago