Sign in
chromium
/
external
/
github.com
/
v8
/
node
/
refs/heads/node-ci-2025-11-20
/
.
/
test
/
parallel
/
test-http-client-invalid-path.js
blob: c8d1fec18f994660912450b3ba8362ee519f0ece [
file
] [
log
] [
blame
] [
edit
]
'use strict'
;
require
(
'../common'
);
const
assert
=
require
(
'assert'
);
const
http
=
require
(
'http'
);
assert
.
throws
(()
=>
{
http
.
request
({
path
:
'/thisisinvalid\uffe2'
}).
end
();
},
{
code
:
'ERR_UNESCAPED_CHARACTERS'
,
name
:
'TypeError'
});