Permalink
Browse files

remove "not modified" event

  • Loading branch information...
1 parent 87bef10 commit 81ae4f16402a59978c4983ad4f1581b8fecafe78 @tj tj committed Jul 4, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −0 Readme.md
  2. +0 −2 lib/send.js
View
@@ -34,6 +34,13 @@ var app = http.createServer(function(req, res){
});
```
+## Events
+
+ - `error` an error occurred `(err)`
+ - `directory` a directory was requested
+ - `stream` file streaming has started `(stream)`
+ - `end` streaming has completed
+
## About
Send is Connect's `static()` extracted for generalized use, a secure file
View
@@ -48,7 +48,6 @@ function send(path) {
* - `stream` file streaming has started
* - `end` streaming has completed
* - `directory` a directory was requested
- * - `not modified` responded with 304
*
* @param {String} path
* @api private
@@ -208,7 +207,6 @@ SendStream.prototype.removeContentHeaderFields = function(){
SendStream.prototype.notModified = function(){
var res = this.res;
debug('not modified');
- this.emit('not modified');
this.removeContentHeaderFields();
res.statusCode = 304;
res.end();

0 comments on commit 81ae4f1

Please sign in to comment.