aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddyfile/lexer.go
diff options
context:
space:
mode:
Diffstat (limited to 'caddyfile/lexer.go')
-rw-r--r--caddyfile/lexer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/caddyfile/lexer.go b/caddyfile/lexer.go
index 2b38627be..f928772e1 100644
--- a/caddyfile/lexer.go
+++ b/caddyfile/lexer.go
@@ -48,6 +48,9 @@ func (l *lexer) load(input io.Reader) error {
// discard byte order mark, if present
firstCh, _, err := l.reader.ReadRune()
if err != nil {
+ if err == io.EOF {
+ return nil
+ }
return err
}
if firstCh != 0xFEFF {