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

Set configuration framework.disallow_search_engine_index explicitly t… #128

Merged
merged 1 commit into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add 'Example Generation Test' to CI.
- Enable phpstan rule for enforcing [safe functions](https://github.com/thecodingmachine/safe), closes #55.
- Add PHP Mess Detector, closes #114.
- Set configuration framework.disallow_search_engine_index explicitly to false to disable the HTTP tag X-Robots-Tag,
closes #123.

## 0.0.28 - 2023-09-14
### Added
Expand Down
1 change: 1 addition & 0 deletions config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ framework:
secret: '%env(APP_SECRET)%'
http_method_override: false
handle_all_throwables: true
disallow_search_engine_index: false

php_errors:
log: true
Expand Down
2 changes: 1 addition & 1 deletion tests/ExampleGeneration/BaseRequestTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ abstract class BaseRequestTestCase extends \App\Tests\FeatureTests\BaseRequestTe
{
private const IGNORED_HEADERS = ['Date', 'Location'];

private const REMOVED_HEADERS = ['X-Debug-Token', 'X-Debug-Token-Link', 'Set-Cookie', 'X-Robots-Tag'];
private const REMOVED_HEADERS = ['X-Debug-Token', 'X-Debug-Token-Link', 'Set-Cookie'];

public function getHeadersFromRequest(ResponseInterface $response): string
{
Expand Down