We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
[object Object]
1 parent 2ad8009 commit 15aadccCopy full SHA for 15aadcc
1 file changed
GitForWindowsHelper/index.js
@@ -2,6 +2,11 @@ const validateGitHubWebHook = require('./validate-github-webhook')
2
3
module.exports = async function (context, req) {
4
const withStatus = (status, headers, body) => {
5
+ if (typeof body === 'object') try {
6
+ body = JSON.stringify(null, 2)
7
+ } catch (e) {
8
+ context.log(e)
9
+ }
10
context.res = {
11
status,
12
headers,
0 commit comments