use HttpUnprocessableEntity if already broadcasting.
This commit is contained in:
parent
ef03f9ec9d
commit
428d6939ec
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ func (h *RoomHandler) boradcastStart(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if h.capture.BroadcastEnabled() {
|
if h.capture.BroadcastEnabled() {
|
||||||
utils.HttpBadRequest(w, "Server is already broadcasting.")
|
utils.HttpUnprocessableEntity(w, "Server is already broadcasting.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -53,7 +53,7 @@ func (h *RoomHandler) boradcastStart(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
func (h *RoomHandler) boradcastStop(w http.ResponseWriter, r *http.Request) {
|
func (h *RoomHandler) boradcastStop(w http.ResponseWriter, r *http.Request) {
|
||||||
if !h.capture.BroadcastEnabled() {
|
if !h.capture.BroadcastEnabled() {
|
||||||
utils.HttpBadRequest(w, "Server is not broadcasting.")
|
utils.HttpUnprocessableEntity(w, "Server is not broadcasting.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue