Skip to content

Commit

Permalink
Fix XML error message
Browse files Browse the repository at this point in the history
  • Loading branch information
moorereason committed Dec 25, 2019
1 parent 28e0012 commit 779ff0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func hookHandler(w http.ResponseWriter, r *http.Request) {
case strings.Contains(contentType, "xml"):
payload, err = mxj.NewMapXmlReader(bytes.NewReader(body))
if err != nil {
log.Printf("[%s] error parsing JSON payload %+v\n", rid, err)
log.Printf("[%s] error parsing XML payload: %+v\n", rid, err)
}
default:
log.Printf("[%s] error parsing body payload due to unsupported content type header: %s\n", rid, contentType)
Expand Down

0 comments on commit 779ff0a

Please sign in to comment.