only accept POSTed watchareas
This commit is contained in:
parent
fe23fd2355
commit
ee0f8815fc
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -122,7 +122,7 @@ func (server Server) addStream(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
func (server Server) addWatchArea(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Method != "POST" {
|
||||
//return
|
||||
return
|
||||
}
|
||||
streamName := r.FormValue("streamName")
|
||||
if streamName == "" {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue