http2: reject non-latin1 client request values #77032
Annotations
2 errors and 1 notice
|
test-macOS
Process completed with exit code 2.
|
|
test-macOS:
test/parallel/test-http2-response-splitting.js#L48
--- stderr ---
node:internal/http2/util:135
throw new ERR_HTTP2_INVALID_HEADER_VALUE(value, name);
^
TypeError [ERR_HTTP2_INVALID_HEADER_VALUE]: Invalid value "/foo?lang=barčĊContentLength: 0čĊčĊHTTP/1.1 200 OKčĊContentLength: 20čĊLastModified: Mon, 27 Oct 2003 14:50:18 GMTčĊContentType: text/htmlčĊčĊ<html>Gotcha!</html>" for header "location"
at assertValidHeaderValue (node:internal/http2/util:135:11)
at processHeader (node:internal/http2/util:849:5)
at buildNgHeaderString (node:internal/http2/util:869:7)
at prepareResponseHeaders (node:internal/http2/core:2668:23)
at ServerHttp2Stream.respond (node:internal/http2/core:3110:9)
at Http2Server.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-http2-response-splitting.js:48:10)
at Http2Server.<anonymous> (/Users/runner/work/node/node/node/test/common/index.js:510:15)
at Http2Server.emit (node:events:509:20)
at ServerHttp2Session.sessionOnStream (node:internal/http2/core:3353:19)
at ServerHttp2Session.emit (node:events:509:20) {
code: 'ERR_HTTP2_INVALID_HEADER_VALUE'
}
Node.js v27.0.0-pre
Command: out/Release/node /Users/runner/work/node/node/node/test/parallel/test-http2-response-splitting.js
|
|
sccache stats - test-macOS
67% - 3312 hits, 1665 misses, 0 errors
|