Fixed bug #2370: Now showing correctly the payload of the request

stable
Jesús Espino 2015-03-09 16:35:51 +01:00
parent 9726992b84
commit 3d47ee44eb
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ WebhookDirective = ($rs, $repo, $confirm, $loading) ->
for log in webhooklogs
log.validStatus = 200 <= log.status < 300
log.prettySentHeaders = _.map(_.pairs(log.request_headers), ([header, value]) -> "#{header}: #{value}").join("\n")
log.prettySentData = JSON.stringify(log.request_data.data, undefined, 2)
log.prettySentData = JSON.stringify(log.request_data)
log.prettyDate = moment(log.created).format("DD MMM YYYY [at] hh:mm:ss") # TODO: i18n
webhook.logs_counter = webhooklogs.length