1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-22 20:52:20 +00:00

Fix typo in occurred

This commit is contained in:
Alexandre Iooss 2020-09-28 10:54:02 +02:00
parent 4eb15e4b1d
commit 3449124d62
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02

View File

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