Skip to content

Commit

Permalink
We don't try to add location blocks through a mechanism that checks R…
Browse files Browse the repository at this point in the history
…EPEATABLE_DIRECTIVES, and it wouldn't work as an accurate check even if we did, so just remove it (#5787)
  • Loading branch information
ohemorange authored and bmw committed Mar 27, 2018
1 parent 4d082e2 commit 669312d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion certbot-nginx/certbot_nginx/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def _update_or_add_directives(directives, insert_at_top, block):


INCLUDE = 'include'
REPEATABLE_DIRECTIVES = set(['server_name', 'listen', INCLUDE, 'location', 'rewrite'])
REPEATABLE_DIRECTIVES = set(['server_name', 'listen', INCLUDE, 'rewrite'])
COMMENT = ' managed by Certbot'
COMMENT_BLOCK = [' ', '#', COMMENT]

Expand Down

0 comments on commit 669312d

Please sign in to comment.