blob: ae11985e12ff874838a3bd69a8ffa2b4ba648210 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
'use strict';
const common = require('../common');
const http = require('http');
common.expectsError(
() => http.request({ method: '\0' }),
{
code: 'ERR_INVALID_HTTP_TOKEN',
type: TypeError,
message: 'Method must be a valid HTTP token ["\u0000"]'
}
);
|