Revert "caddyfile: Reject long heredoc markers (#6098)" (#6100)

This reverts commit e7a534d0a3.
This commit is contained in:
Mohammed Al Sahaf 2024-02-12 21:06:22 +03:00 committed by GitHub
parent f9e11158bc
commit 21744b6c4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 40 deletions

View file

@ -149,10 +149,6 @@ func (l *lexer) next() (bool, error) {
continue
}
if len(val) > 32 {
return false, fmt.Errorf("heredoc marker too long on line #%d: %s", l.line, string(val))
}
// after hitting a newline, we know that the heredoc marker
// is the characters after the two << and the newline.
// we reset the val because the heredoc is syntax we don't