-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide PHP version header in Apache images (#190)
* Set expose_php to off to hide PHP version * Added test to verify PHP version is not exposed
- Loading branch information
Showing
4 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Test to check if PHP version is hidden in the response headers | ||
// See https://github.com/ckulka/baikal-docker/issues/111 | ||
describe("Hidden PHP version header (#111)", () => { | ||
it("Should not expose PHP version", () => { | ||
cy.request("localhost").should((response) => { | ||
expect(response.headers["x-powered-by"], "HTTP header 'x-powered-by'").to | ||
.be.undefined; | ||
}); | ||
}); | ||
}); |