express
Advanced tools
Comparing version 2.3.7 to 2.3.8
@@ -31,3 +31,3 @@ | ||
exports.version = '2.3.7'; | ||
exports.version = '2.3.8'; | ||
@@ -34,0 +34,0 @@ /** |
@@ -109,3 +109,3 @@ | ||
// strip irrelevant headers | ||
if (204 === status) { | ||
if (204 == status) { | ||
this.removeHeader('Content-Type'); | ||
@@ -112,0 +112,0 @@ this.removeHeader('Content-Length'); |
@@ -199,3 +199,3 @@ | ||
// implied OPTIONS | ||
if ('OPTIONS' == req.method) return self._options(req, res); | ||
if (!route && 'OPTIONS' == req.method) return self._options(req, res); | ||
@@ -285,3 +285,3 @@ // no route | ||
var routes = self.routes[method]; | ||
if (!routes) return; | ||
if (!routes || 'options' == method) return; | ||
for (var i = 0, len = routes.length; i < len; ++i) { | ||
@@ -288,0 +288,0 @@ if (routes[i].match(path)) return true; |
{ | ||
"name": "express", | ||
"description": "Sinatra inspired web development framework", | ||
"version": "2.3.7", | ||
"version": "2.3.8", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -65,2 +65,4 @@ | ||
* [express-namespace](http://github.com/visionmedia/express-namespace) namespaced route support | ||
* [express-params](https://github.com/visionmedia/express-params) param pre-condition functions | ||
* [express-mongoose](https://github.com/LearnBoost/express-mongoose) plugin for easy rendering of Mongoose async Query results | ||
* Follow [tjholowaychuk](http://twitter.com/tjholowaychuk) on twitter for updates | ||
@@ -67,0 +69,0 @@ * [Google Group](http://groups.google.com/group/express-js) for discussion |
Sorry, the diff of this file is not supported yet
103225
125