mirror of
https://github.com/datarhei/core.git
synced 2025-10-04 23:53:12 +08:00
Remove double import
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"path"
|
|
||||||
urlpath "path"
|
urlpath "path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
@@ -415,7 +414,7 @@ func (g *sessionRewriter) rewriteHLS(sessionID string, requestURL *url.URL) {
|
|||||||
// and has to be stopped.
|
// and has to be stopped.
|
||||||
file := u.Path
|
file := u.Path
|
||||||
if !strings.HasPrefix(file, "/") {
|
if !strings.HasPrefix(file, "/") {
|
||||||
dir := path.Dir(requestURL.Path)
|
dir := urlpath.Dir(requestURL.Path)
|
||||||
file = filepath.Join(dir, file)
|
file = filepath.Join(dir, file)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user