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

Incorrect option header name #54

Closed
ghost opened this issue Nov 4, 2020 · 1 comment
Closed

Incorrect option header name #54

ghost opened this issue Nov 4, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 4, 2020

It tries to get the value of $this->config['x-power-by'] when it should be $this->config['x-powered-by']

See: https://github.com/bepsvpt/secure-headers/blob/master/src/SecureHeaders.php#L230

PR: #55

Thanks.

@bepsvpt
Copy link
Owner

bepsvpt commented Dec 3, 2020

This is expected behavior because older version use incorrect key name, you can find it from #50 and b405451.

$this->config['x-powered-by'] ?? ($this->config['x-power-by'] ?? '')

To prevent breaking change, it will use x-powered-by key first. If x-powered-by does not exist, it will use x-power-by.

@ghost ghost closed this as completed Dec 3, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant