Skip to content

Commit e4c7f10

Browse files
save file
1 parent 451b90e commit e4c7f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blog/25-07-24/http-server/ex/http-server-minimal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
var type = mime(path);
1111

1212
res.writeHead(200,{'content-type':type});
13-
require('fs').createReadStream(url).pipe(res);
13+
require('fs').createReadStream(path).pipe(res);
1414

1515
}//request
1616

0 commit comments

Comments
 (0)