mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
f8763bb077
PR-URL: https://github.com/nodejs/node/pull/26483 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
16 lines
417 B
JavaScript
16 lines
417 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
|
|
const { OutgoingMessage } = require('http');
|
|
|
|
const warn = 'OutgoingMessage.prototype._headerNames is deprecated';
|
|
common.expectWarning('DeprecationWarning', warn, 'DEP0066');
|
|
|
|
{
|
|
// Tests for _headerNames set method
|
|
const outgoingMessage = new OutgoingMessage();
|
|
outgoingMessage._headerNames = {
|
|
'x-flow-id': '61bba6c5-28a3-4eab-9241-2ecaa6b6a1fd'
|
|
};
|
|
}
|