Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/optimisations for header value builders #130

Merged
merged 11 commits into from
Dec 2, 2024

Conversation

GaProgMan
Copy link
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;
Copy link

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
4 checks passed
@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