mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-28 04:39:52 +00:00
Package extension -> extensions
This commit is contained in:
parent
9a27beb79c
commit
cd0421ceb8
3 changed files with 4 additions and 4 deletions
|
|
@ -3,7 +3,7 @@
|
|||
// internally for paths requested that don't match an existing
|
||||
// resource. The first path+ext combination that matches a valid
|
||||
// file will be used.
|
||||
package extension
|
||||
package extensions
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
|
@ -7,7 +7,7 @@ type Path string
|
|||
|
||||
// Path matching will probably not always be a direct
|
||||
// comparison; this method assures that paths can be
|
||||
// easily matched.
|
||||
// easily and consistently matched.
|
||||
func (p Path) Matches(other string) bool {
|
||||
return strings.HasPrefix(string(p), other)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue