Repository navigation
test(repeater): cover empty response header values - #838
Merged
Merged
Conversation
The fork now includes upstream node-libcurl 5.2.0 (Multi/Easy lifetime and transfer ownership fixes, READFUNCTION/SEEKFUNCTION hardening, Brotli 1.2.1) and the OpenSSL error queue fix that so far was only in 5.1.7-1.
5.2.0-2 installs the prebuilt binary on Windows without first building curl and its dependencies with vcpkg, which took 20-30 minutes per install.
5.2.0 is the stable release of the same code as 5.2.0-2.
Targets that send a header with an empty value (`expires:`, HTTP/2 `cache-control: ''`) used to reach bridges as a `"name: "` key with an undefined value, because node-libcurl's parseHeaders split on /:\s(.+)/. node-libcurl 5.2.0 fixes the parser; these tests run real libcurl against an HTTP/1.1 and an HTTP/2 TLS target so a future dependency bump cannot bring the bug back unnoticed. The HTTP/2 server gets a self-signed certificate generated per run with node-forge (now a devDependency) instead of a committed private key.
YarikMamykin
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Regression tests for response headers with an empty value, taken from #835 without its header parser.
@brightsec/node-libcurl5.2.0 (#836) fixesparseHeaders, soHttpRequestExecutornow deliversexpires:as''. Before that, the header reached bridges as a"expires: "key with anundefinedvalue. These tests run real libcurl and pin the behavior, so a later bump cannot silently bring the bug back:expires:,cache-control:,pragma:,x-nospace:value,x-padded: value.expires,cache-control,pragmaand twoset-cookie.:or whitespace and no value isundefined.The HTTP/2 server uses a self-signed certificate generated per run with
node-forge, which is now a devDependency (pinned to^1.4.1to match the existingoverridesentry; the lockfile moves it from 1.4.3 to 1.4.4). No private key is committed.Verification
5.2.0: both new tests pass, along with all 366 unit tests, lint and prettier.5.1.6: both new tests fail.Merge order
This PR is stacked on #836 (base
chore/node-libcurl-5.2.0) because the tests need node-libcurl 5.2.0. Once #836 is merged, it will be retargeted tonext.