-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements a whitelist for asset filetypes (#18)
* [ch] general grammer fixes * [f#15] add status code to asset header fixes #15 * [ch] improve how invalid assets are handled - refs #15 * [a#14] Allow asset type to be whitelisted - closed #14
- Loading branch information
1 parent
eea9734
commit 585486e
Showing
3 changed files
with
93 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
declare(strict_types=1); | ||
namespace ReactiveSlim; | ||
|
||
final class AssetType | ||
{ | ||
const STYLESHEET = 'css|css.map'; | ||
const IMAGE = 'png|jpg|jpeg|gif'; | ||
const SCRIPT = 'js|js.map'; | ||
} |
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