Skip to content

Feature/optimisations for header value builders#130

Merged
GaProgMan merged 11 commits intomainfrom
feature/optimisations-for-header-value-builders
Dec 2, 2024
Merged

Feature/optimisations for header value builders#130
GaProgMan merged 11 commits intomainfrom
feature/optimisations-for-header-value-builders

Conversation

@GaProgMan
Copy link
Copy Markdown
Owner

Rationale for this PR

This PR brings in a lot of small changes and one breaking change.

BREAKING CHANGE: The functionality to remove the X-Powered-By header has now been removed from the code base. Even though this is an HTTP header recommended in the OWASP Secure Headers project, it is not something that ASP .NET Core can control as it is set at the reverse proxy level. Please see Server Header: A Warning for more detail.

The small changes provided in this PR are around code clean up (moving common using statements out to global.usings.cs files, tidying up line lengths, fixing typos, etc.) and a few tiny optimisations when building the final header values. It also includes a few extra unit tests and a minor version bump (along with updates to the relevant files).

GaProgMan and others added 3 commits December 2, 2024 15:39
moved some usings out to global usings;
BREAKING CHANGE: Removed the ability to remove the "X-Powered-By" header;
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 2, 2024

Code Coverage

Package Line Rate Branch Rate Complexity Health
OwaspHeaders.Core 86% 73% 267
OwaspHeaders.Core 86% 73% 267
Summary 86% (1068 / 1240) 73% (250 / 344) 534

@GaProgMan GaProgMan merged commit 95e8c36 into main Dec 2, 2024
@GaProgMan GaProgMan deleted the feature/optimisations-for-header-value-builders branch December 2, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants