mirror of
https://github.com/github/codeql-action.git
synced 2025-12-29 18:50:25 +08:00
13 lines
234 B
JavaScript
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
|
|
};
|