mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01:00
http2: fix DEP0194 message
PR-URL: https://github.com/nodejs/node/pull/58669 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
parent
85e8cc6ff3
commit
977b5ac7dd
|
|
@ -753,7 +753,7 @@ function onGoawayData(code, lastStreamID, buf) {
|
|||
|
||||
// TODO(aduh95): remove this in future semver-major
|
||||
const deprecateWeight = deprecateProperty('weight',
|
||||
'Priority signaling has been deprecated as of RFC 1993.',
|
||||
'Priority signaling has been deprecated as of RFC 9113.',
|
||||
'DEP0194');
|
||||
|
||||
// When a ClientHttp2Session is first created, the socket may not yet be
|
||||
|
|
@ -2480,7 +2480,7 @@ class Http2Stream extends Duplex {
|
|||
Http2Stream.prototype.priority = deprecate(function priority(options) {
|
||||
if (this.destroyed)
|
||||
throw new ERR_HTTP2_INVALID_STREAM();
|
||||
}, 'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993', 'DEP0194');
|
||||
}, 'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113', 'DEP0194');
|
||||
|
||||
function callTimeout(self, session) {
|
||||
// If the session is destroyed, this should never actually be invoked,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ const h2 = require('http2');
|
|||
|
||||
common.expectWarning(
|
||||
'DeprecationWarning',
|
||||
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
|
||||
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
|
||||
'DEP0194');
|
||||
|
||||
const server = h2.createServer();
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ const http2 = require('http2');
|
|||
|
||||
common.expectWarning(
|
||||
'DeprecationWarning',
|
||||
'Priority signaling has been deprecated as of RFC 1993.',
|
||||
'Priority signaling has been deprecated as of RFC 9113.',
|
||||
'DEP0194');
|
||||
|
||||
const checkWeight = (actual, expect) => {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ const Countdown = require('../common/countdown');
|
|||
|
||||
common.expectWarning(
|
||||
'DeprecationWarning',
|
||||
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
|
||||
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
|
||||
'DEP0194');
|
||||
|
||||
const server = http2.createServer();
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ const h2 = require('http2');
|
|||
|
||||
common.expectWarning(
|
||||
'DeprecationWarning',
|
||||
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
|
||||
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
|
||||
'DEP0194');
|
||||
|
||||
const server = h2.createServer();
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ const h2 = require('http2');
|
|||
|
||||
common.expectWarning(
|
||||
'DeprecationWarning',
|
||||
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
|
||||
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
|
||||
'DEP0194');
|
||||
|
||||
const server = h2.createServer();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user