mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-23 05:42:30 +00:00
remove \n
This commit is contained in:
parent
c53596df59
commit
75cf8952be
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ func hookHandler(w http.ResponseWriter, r *http.Request) {
|
|||
if err != nil {
|
||||
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
fmt.Fprintf(w, "Error occurred while executing the hook's command. Please check your logs for more details.\n")
|
||||
fmt.Fprintf(w, "Error occurred while executing the hook's command. Please check your logs for more details.")
|
||||
} else {
|
||||
fmt.Fprintf(w, response)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue