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
1 changed files with 2 additions and 2 deletions

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")