mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 16:54:59 +02:00
Fix mime.types parsing for nginx
Added characters to key parsing rule which appear in the mime type in mime.types.
This commit is contained in:
@@ -17,7 +17,7 @@ class RawNginxParser(object):
|
||||
right_bracket = Literal("}").suppress()
|
||||
semicolon = Literal(";").suppress()
|
||||
space = White().suppress()
|
||||
key = Word(alphanums + "_/")
|
||||
key = Word(alphanums + "_/+-.")
|
||||
# Matches anything that is not a special character AND any chars in single
|
||||
# or double quotes
|
||||
value = Regex(r"((\".*\")?(\'.*\')?[^\{\};,]?)+")
|
||||
|
||||
Reference in New Issue
Block a user