13 lines
235 B
JavaScript
13 lines
235 B
JavaScript
|
'use strict';
|
||
|
const common = require('../common');
|
||
|
const http = require('http');
|
||
|
|
||
|
common.expectsError(() => {
|
||
|
http.request({
|
||
|
path: '/thisisinvalid\uffe2'
|
||
|
}).end();
|
||
|
}, {
|
||
|
code: 'ERR_UNESCAPED_CHARACTERS',
|
||
|
type: TypeError
|
||
|
});
|