Skip to content

Commit

Permalink
fix: handle optional add_headers "always" suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Nov 1, 2021
1 parent 19c6b68 commit ff5be58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lagoonyml/routeannotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
// annotations.
var validSnippets = regexp.MustCompile(
`^(rewrite +[^; ]+ +[^; ]+( (last|break|redirect|permanent))?;|` +
`add_header +([^; ]+|"[^"]+"|'[^']+') +([^; ]+|"[^"]+"|'[^']+');|` +
`add_header +([^; ]+|"[^"]+"|'[^']+') +([^; ]+|"[^"]+"|'[^']+')( always)?;|` +
`set_real_ip_from +[^; ]+;|` +
`more_set_headers +(-s +("[^"]+"|'[^']+')|-t +("[^"]+"|'[^']+')|("[^"]+"|'[^']+'))+;|` +
` )+$`)
Expand Down

0 comments on commit ff5be58

Please sign in to comment.