forked from nginxinc/crossplane
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
http
types
directives analysable
The syntax of `http` `types` blocks is distinct, in that their child directives are arbitrary MIME types - they therefore can't be analysed when `strict` or `check_ctx` are enabled, and no meaningful analysis can be performed when `check_args` is enabled because the arity of child directives is unknown. Skip the checks performed when `strict` and `check_ctx` are enabled, and hint to the analyser that all directives inside a `types` block accept one or more arguments so that a meaningful check can be performed when `check_args` is enabled. Fixes nginxinc#101.
- Loading branch information
1 parent
ad3d230
commit 0709547
Showing
4 changed files
with
118 additions
and
10 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,7 @@ | ||
http { | ||
types { | ||
text/html html; | ||
image/gif gif; | ||
image/jpeg jpg jpeg; | ||
} | ||
} |
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