Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

File streaming exercise. #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup.
  • Loading branch information
hemanth committed Jul 25, 2014
commit f68bd789fc7421556e13cfcc260ac7a32bce3dbc
2 changes: 0 additions & 2 deletions exercises/stream_file/solution/solution.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ var app = module.exports = koa();
var path = require('path');
var extname = path.extname;

// try GET /app.js

app.use(function * () {
var path = __dirname + this.path;
if (fs.lstatSync(path).isFile()) {
Expand Down