Remove double import
This commit is contained in:
parent
ca261a56ee
commit
ec7d47734b
1 changed files with 1 additions and 2 deletions
|
|
@ -7,7 +7,6 @@ import (
|
|||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
||||
urlpath "path"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
|
|
@ -415,7 +414,7 @@ func (g *sessionRewriter) rewriteHLS(sessionID string, requestURL *url.URL) {
|
|||
// and has to be stopped.
|
||||
file := u.Path
|
||||
if !strings.HasPrefix(file, "/") {
|
||||
dir := path.Dir(requestURL.Path)
|
||||
dir := urlpath.Dir(requestURL.Path)
|
||||
file = filepath.Join(dir, file)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue