Skip to content

Commit 02d464d

Browse files
committed
fix: ensure readFileSync is imported for sendFile functionality
- Import readFileSync in sendFile method to prevent runtime errors
1 parent ebba3ce commit 02d464d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/LiteNode/methods/extendResponse.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { STE } from "../../STE/ste.js"
22
import { getContentType } from "../../utils/getContentType.js"
3+
import { readFileSync } from "node:fs"
34

45
export function extendResponse(nativeRes) {
56
nativeRes.redirect = (location, statusCode = 302) => {

0 commit comments

Comments
 (0)