fix read /
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -555,7 +555,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) | ... | @@ -555,7 +555,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) |
| 555 | } | 555 | } |
| 556 | } | 556 | } |
| 557 | if strings.HasPrefix(r.URL.Path, prefix) { | 557 | if strings.HasPrefix(r.URL.Path, prefix) { |
| 558 | if len(r.URL.Path) > len(prefix) && r.URL.Path[len(prefix)+1] != '/' { | 558 | if len(r.URL.Path) > len(prefix) && r.URL.Path[len(prefix)] != '/' { |
| 559 | continue | 559 | continue |
| 560 | } | 560 | } |
| 561 | file := path.Join(staticDir, r.URL.Path[len(prefix):]) | 561 | file := path.Join(staticDir, r.URL.Path[len(prefix):]) | ... | ... |
-
Please register or sign in to post a comment