diff --git a/core/router/fs.go b/core/router/fs.go index 0fcfc26f..c0685cb0 100644 --- a/core/router/fs.go +++ b/core/router/fs.go @@ -787,7 +787,6 @@ func serveFile(ctx context.Context, fs http.FileSystem, name string, redirect bo defer ff.Close() dd, err := ff.Stat() if err == nil { - name = index d = dd f = ff } diff --git a/core/router/macro/interpreter/lexer/lexer.go b/core/router/macro/interpreter/lexer/lexer.go index e57822f3..7af0f085 100644 --- a/core/router/macro/interpreter/lexer/lexer.go +++ b/core/router/macro/interpreter/lexer/lexer.go @@ -114,7 +114,7 @@ func (l *Lexer) NextToken() (t token.Token) { // NextDynamicToken doesn't cares about the grammar. // It reads numbers or any unknown symbol, // it's being used by parser to skip all characters -// between parameter function's arguemnts inside parenthesis, +// between parameter function's arguments inside parenthesis, // in order to allow custom regexp on the end-language too. // // It moves the cursor forward.