1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 09:39:08 -05:00
denoland-deno/tests/unit_node
Marvin Hagemeister 558d2a098b
fix(node/http): wrong req.url value (#25081)
This PR addresses a regression introduced in
https://github.com/denoland/deno/pull/25021 that would cause the
`req.url` parameter in Node's http server to always be a single
character instead of the expected value. The regression was caused by
effectively calling `.indexOf()` on an empty string and thus passing the
wrong index for slicing.

```js
"".indexOf("/") // -> -1
request.url.slice(-1) // effectively only giving us the last character
```

Fixes https://github.com/denoland/deno/issues/25080
2024-08-18 15:37:39 +00:00
..
_fs fix(node/fs): Use correct offset and length in node:fs.read and write (#25049) 2024-08-16 09:48:57 -07:00
crypto chore: update the copyright of c, mjs, and jsx (#25005) 2024-08-12 12:41:32 -04:00
internal chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
testdata fix(ext/node): rewrite digest handling (#24392) 2024-07-05 10:10:22 +02:00
_test_utils.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
assert_test.ts fix(node/assert): throws not checking error instance (#24466) 2024-07-08 21:28:39 +02:00
assertion_error_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
async_hooks_test.ts Revert "feat: async context" (#24856) 2024-08-02 18:16:59 +00:00
buffer_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
child_process_test.ts fix(node): Rework node:child_process IPC (#24763) 2024-07-30 16:13:24 -07:00
console_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
dgram_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
domain_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
events_test.ts fix(ext/node): implement EventEmitterAsyncResource (#22994) 2024-03-20 11:20:18 +05:30
fetch_test.ts feat(fetch): accept async iterables for body (#24623) 2024-08-06 00:13:02 -07:00
fs_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
http2_test.ts feat(ext/node): support http2session.socket (#24786) 2024-08-14 21:59:22 +00:00
http_test.ts fix(node/http): wrong req.url value (#25081) 2024-08-18 15:37:39 +00:00
inspector_test.ts fix(node/inspector): Session constructor should not throw (#25041) 2024-08-14 13:34:24 +00:00
module_test.ts fix: stub node:module.register() (#24965) 2024-08-09 14:25:33 +02:00
net_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
os_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
path_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
perf_hooks_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
process_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
punycode_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
querystring_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
readline_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
repl_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
stream_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
string_decoder_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
timers_test.ts fix(node/timers/promises): add scheduler APIs (#24802) 2024-07-31 12:00:01 +02:00
tls_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
tty_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
util_test.ts fix(node/util): add missing debug alias of debuglog (#24944) 2024-08-08 13:52:14 +02:00
v8_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
vm_test.ts feat: vm rewrite (#24596) 2024-08-06 12:52:53 +00:00
worker_threads_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
zlib_test.ts fix(ext/node): createBrotliCompress params (#24984) 2024-08-11 14:26:30 +05:30