This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@octokit/webhooks/dist-src/middleware/web/handle-response.js
T

13 lines
234 B
JavaScript

function handleResponse(body, status = 200, headers = {}) {
if (body !== null) {
headers["content-length"] = body.length.toString();
}
return new Response(body, {
status,
headers
});
}
export {
handleResponse
};