mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-03 07:38:23 +03:00
final corrections
This commit is contained in:
parent
57f1d3c205
commit
e23af5e99a
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ import "io"
|
||||||
// If checkDirectives is true, only valid directives will be allowed
|
// If checkDirectives is true, only valid directives will be allowed
|
||||||
// otherwise we consider it a parse error. Server blocks are returned
|
// otherwise we consider it a parse error. Server blocks are returned
|
||||||
// in the order in which they appear.
|
// in the order in which they appear.
|
||||||
func ServerBlocks(filename string, input io.Reader) ([]serverBlock, error) {
|
func ServerBlocks(filename string, input io.Reader, checkDirectives bool) ([]serverBlock, error) {
|
||||||
p := parser{Dispenser: NewDispenser(filename, input)}
|
p := parser{Dispenser: NewDispenser(filename, input)}
|
||||||
blocks, err := p.parseAll()
|
blocks, err := p.parseAll()
|
||||||
return blocks, err
|
return blocks, err
|
||||||
|
|
Loading…
Reference in a new issue