Skip to content

Commit

Permalink
feat: [test, features added]: More configurations added, Test cases a…
Browse files Browse the repository at this point in the history
…dded
  • Loading branch information
hsk11 committed Sep 7, 2024
1 parent b888e0c commit 27c5179
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jai-static",
"version": "1.11.0",
"version": "1.11.1",
"description": "Powerful Node.js module/package for serving static files through http server",
"keywords": [
"static",
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ function parseIfModifiedSince(ifModifiedSince: string): Date | null {
// Main function to send a file
async function sendFile(filePath: string, options: Partial<JaiStaticOptions>, res: ServerResponse, req: IncomingMessage | Request = { headers: {}, method: "GET" }, cb?: (error?: Error) => void, showError: boolean = false): Promise<boolean> {
try {
console.log('Sending file:', filePath);
filePath = path.resolve(filePath);
if (!req?.headers) req.headers = {};
if (!req?.method) req.method = "GET";
Expand Down

0 comments on commit 27c5179

Please sign in to comment.