Skip to content

Commit

Permalink
fix: ensure readFileSync is imported for sendFile functionality
Browse files Browse the repository at this point in the history
- Import readFileSync in sendFile method to prevent runtime errors
  • Loading branch information
LebCit committed Aug 4, 2024
1 parent ebba3ce commit 02d464d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/LiteNode/methods/extendResponse.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { STE } from "../../STE/ste.js"
import { getContentType } from "../../utils/getContentType.js"
import { readFileSync } from "node:fs"

export function extendResponse(nativeRes) {
nativeRes.redirect = (location, statusCode = 302) => {
Expand Down

0 comments on commit 02d464d

Please sign in to comment.