1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-28 01:12:19 +02:00

Fix typo in occurred

This commit is contained in:
Alexandre Iooss
2020-09-28 10:54:02 +02:00
parent 4eb15e4b1d
commit 3449124d62

View File

@ -56,8 +56,8 @@ func viewerPostHandler(w http.ResponseWriter, r *http.Request) {
// Send server description as JSON
jsonDesc, err := json.Marshal(localDescription)
if err != nil {
http.Error(w, "An error occured while formating response", http.StatusInternalServerError)
log.Println("An error occured while sending session description", err)
http.Error(w, "An error occurred while formating response", http.StatusInternalServerError)
log.Println("An error occurred while sending session description", err)
return
}
w.Header().Set("Content-Type", "application/json")