Skip to content

Commit

Permalink
Fix the sanity check for url processing (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDmitry committed Jan 15, 2024
1 parent 7569ccd commit ff9421e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ var generatedFiles = map[string]string{
func AssetSkipper(c echo.Context) bool {
path := c.Request().URL.Path
parts := strings.Split(path, "/")
if len(parts) == 0 {
if len(parts) < 2 {
return true
}

Expand Down

0 comments on commit ff9421e

Please sign in to comment.