Skip to content

Commit

Permalink
Change http response StatusUnauthorized at L188 to StatusInternalServ…
Browse files Browse the repository at this point in the history
…erError

Co-authored-by: Naoki Kanatani <k12naoki@gmail.com>
  • Loading branch information
KouWakai and kanata2 committed Dec 25, 2022
1 parent c4f3ebe commit 824342e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/modal/modal.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func handleModal(w http.ResponseWriter, r *http.Request) {
_, err := api.UpdateView(updateModal, "", i.View.Hash, i.View.ID)
if err != nil {
fmt.Printf("Error updating view: %s", err)
w.WriteHeader(http.StatusUnauthorized)
w.WriteHeader(http.StatusInternalServerError)
return
}
}
Expand Down

0 comments on commit 824342e

Please sign in to comment.