mirror of
https://github.com/github/codeql-action.git
synced 2025-12-30 11:10:22 +08:00
13 lines
311 B
JavaScript
13 lines
311 B
JavaScript
function sendResponse(octokitResponse) {
|
|
const responseOptions = {
|
|
status: octokitResponse.status
|
|
};
|
|
if (octokitResponse.headers) {
|
|
Object.assign(responseOptions, { headers: octokitResponse.headers });
|
|
}
|
|
return new Response(octokitResponse.text, responseOptions);
|
|
}
|
|
export {
|
|
sendResponse
|
|
};
|