Ben Noordhuis
4b77626add
test: make test-http-unix-socket use common.PIPE
Don't unlink the socket, that's the responsibility of libuv and/or node.
13 years ago
Ben Noordhuis
725fcf5587
test: add test-net-pingpong to `make test-uv` list
13 years ago
Ben Noordhuis
bff9602966
test: add common.PIPE, pipe name for tests
13 years ago
Bert Belder
3de406cc58
Add tests for process.nextTick bugs on windows
These are supposed to pass w/ libuv, so add them to the test-uv tests.
13 years ago
Trent Mick
bbf7e8ed5e
http: fix setting ServerResponse.statusCode in writeHead
Fixes #1374 .
13 years ago
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
koichik
4662ace916
Fix message tests
V8 3.4.12.1 changed exception log format.
3.14.10:
node.js:189
throw e; // process.nextTick error, or 'error' event on first tick
^
3.4.12.1:
node.js:189
throw e; // process.nextTick error, or 'error' event on first tick
^
The caret was moved.
13 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
a3e3ad40b1
Fix fs can't handle large file on 64bit platform
fs.read() and fs.write() can't handle more than 2GB files on 64bit platform.
Also fs.truncate() can't handle more than 4GB files.
Fixes #1199 .
Fixes #1094 .
14 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
Bert Belder
72e18d7f19
dns_uv: match the old api better, fix tests
14 years ago
Ryan Dahl
9c77169112
make test-process-uptime fail less often
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
e8542b6220
Fix internet testcase config
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
Bert Belder
1e29fe65c3
Fix `make test-internet`
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