mirror of
https://github.com/github/codeql-action.git
synced 2025-12-28 02:00:12 +08:00
12 lines
264 B
JavaScript
12 lines
264 B
JavaScript
function handleResponse(body, status = 200, headers = {}, response) {
|
|
if (body === null) {
|
|
return false;
|
|
}
|
|
headers["content-length"] = body.length.toString();
|
|
response.writeHead(status, headers).end(body);
|
|
return true;
|
|
}
|
|
export {
|
|
handleResponse
|
|
};
|