diff options
author | Wolfy-J <[email protected]> | 2018-06-13 23:26:09 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-13 23:26:09 +0300 |
commit | a74169fef1316c2b2ff3598576b57fd9617be8fe (patch) | |
tree | 921623fd2314f46a619a206ff4febe83d9d37d20 /service/static/service.go | |
parent | 6634465106fa1ed94445b5a546b1af5b87e7944c (diff) |
static service test
Diffstat (limited to 'service/static/service.go')
-rw-r--r-- | service/static/service.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/service/static/service.go b/service/static/service.go index 1631f610..a89cb495 100644 --- a/service/static/service.go +++ b/service/static/service.go @@ -58,6 +58,7 @@ func (s *Service) Stop() {} // middleware must return true if request/response pair is handled withing the middleware. func (s *Service) middleware(w http.ResponseWriter, r *http.Request) bool { fPath := r.URL.Path + if !strings.HasPrefix(fPath, "/") { fPath = "/" + fPath } |