Skip to content

Commit

Permalink
fixed url
Browse files Browse the repository at this point in the history
  • Loading branch information
kuozo committed Sep 7, 2020
1 parent 1cd27b6 commit cc40dfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cam.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ func (Cam) splitPrefix(data string) []string {
func (c Cam) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error {

// make sure the url filter
url := r.URL.String()
url := r.URL.Path

if include(url, c.AllowURL) {
return next.ServeHTTP(w, r)
}
Expand Down

0 comments on commit cc40dfd

Please sign in to comment.