mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-15 01:54:45 +00:00
Fix XML error message
This commit is contained in:
parent
28e0012470
commit
779ff0ad10
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue