Skip to content
Discussion options

You must be logged in to vote

The 1024-character cap is intentional and enforced in the client.

In src/AppInstallerRepositoryCore/Rest/RestClient.cpp:

constexpr size_t WindowsPackageManagerHeaderMaxLength = 1024;
...
THROW_HR_IF(APPINSTALLER_CLI_ERROR_CUSTOMHEADER_EXCEEDS_MAXLENGTH,
    customHeader.value().size() > WindowsPackageManagerHeaderMaxLength);

The same limit is written into the original design spec (#893 – Support for arbitrary HTTP header for Rest sources): “The header can have a maximum length of 1024 characters.”

--header is not a general HTTP header injector. Whatever you pass is sent as the value of a single header named Windows-Package-Manager to a REST source. The cap keeps that value bounded for log…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bara-nflohr
Comment options

Answer selected by bara-nflohr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants