hopefulyl fixed
This commit is contained in:
parent
e9766de877
commit
aec97e9972
2 changed files with 6 additions and 22 deletions
|
|
@ -17,25 +17,6 @@ index 8c5bb08..0ad7458 100644
|
|||
// Check version if monitoring is enabled
|
||||
if h.c.VersionMonitor && !h.versionOk(w, r) {
|
||||
return
|
||||
@@ -55,15 +63,15 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
// Serve actual file from manager
|
||||
- if len(parts) < 3 {
|
||||
+ if len(parts) < 5 || parts[0] != "vod" {
|
||||
log.Println("Invalid URL", url)
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
// Get streamid and chunk
|
||||
- streamid := parts[0]
|
||||
- path := "/" + strings.Join(parts[1:len(parts)-1], "/")
|
||||
+ streamid := parts[1]
|
||||
+ path := "/" + strings.Join(parts[2:len(parts)-1], "/")
|
||||
chunk := parts[len(parts)-1]
|
||||
|
||||
// Check if POST request to create temp file
|
||||
diff --git a/transcoder/stream.go b/transcoder/stream.go
|
||||
index cf353fc..f8694fc 100644
|
||||
--- a/transcoder/stream.go
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue