mirror of
https://github.com/Monibuca/plugin-hdl.git
synced 2025-10-05 08:47:00 +08:00
适配引擎修改
This commit is contained in:
3
main.go
3
main.go
@@ -130,8 +130,7 @@ func (sub *HDLSubscriber) WriteFlvHeader() {
|
||||
}
|
||||
|
||||
func (c *HDLConfig) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
streamPath := strings.TrimSuffix(strings.TrimPrefix(r.URL.Path, "/hdl"), ".flv")
|
||||
streamPath = strings.TrimPrefix(streamPath, "/")
|
||||
streamPath := strings.TrimSuffix(strings.TrimPrefix(r.URL.Path, "/"), ".flv")
|
||||
if r.URL.RawQuery != "" {
|
||||
streamPath += "?" + r.URL.RawQuery
|
||||
}
|
||||
|
Reference in New Issue
Block a user