mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
use HttpUnprocessableEntity if already broadcasting.
This commit is contained in:
parent
ef03f9ec9d
commit
428d6939ec
@ -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 New Issue
Block a user