Skip to content

Commit b11da11

Browse files
climba03003targos
authored andcommitted
http2: fix DEP0194 message
PR-URL: #58669 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Tim Perry <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent b1f60d2 commit b11da11

6 files changed

+7
-7
lines changed

lib/internal/http2/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ function onGoawayData(code, lastStreamID, buf) {
753753

754754
// TODO(aduh95): remove this in future semver-major
755755
const deprecateWeight = deprecateProperty('weight',
756-
'Priority signaling has been deprecated as of RFC 1993.',
756+
'Priority signaling has been deprecated as of RFC 9113.',
757757
'DEP0194');
758758

759759
// When a ClientHttp2Session is first created, the socket may not yet be
@@ -2480,7 +2480,7 @@ class Http2Stream extends Duplex {
24802480
Http2Stream.prototype.priority = deprecate(function priority(options) {
24812481
if (this.destroyed)
24822482
throw new ERR_HTTP2_INVALID_STREAM();
2483-
}, 'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993', 'DEP0194');
2483+
}, 'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113', 'DEP0194');
24842484

24852485
function callTimeout(self, session) {
24862486
// If the session is destroyed, this should never actually be invoked,

test/parallel/test-http2-client-priority-before-connect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const h2 = require('http2');
77

88
common.expectWarning(
99
'DeprecationWarning',
10-
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
10+
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
1111
'DEP0194');
1212

1313
const server = h2.createServer();

test/parallel/test-http2-client-set-priority.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const http2 = require('http2');
88

99
common.expectWarning(
1010
'DeprecationWarning',
11-
'Priority signaling has been deprecated as of RFC 1993.',
11+
'Priority signaling has been deprecated as of RFC 9113.',
1212
'DEP0194');
1313

1414
const checkWeight = (actual, expect) => {

test/parallel/test-http2-priority-cycle-.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Countdown = require('../common/countdown');
99

1010
common.expectWarning(
1111
'DeprecationWarning',
12-
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
12+
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
1313
'DEP0194');
1414

1515
const server = http2.createServer();

test/parallel/test-http2-priority-event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const h2 = require('http2');
77

88
common.expectWarning(
99
'DeprecationWarning',
10-
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
10+
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
1111
'DEP0194');
1212

1313
const server = h2.createServer();

test/parallel/test-http2-server-stream-session-destroy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const h2 = require('http2');
88

99
common.expectWarning(
1010
'DeprecationWarning',
11-
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
11+
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
1212
'DEP0194');
1313

1414
const server = h2.createServer();

0 commit comments

Comments
 (0)