Socket
Socket
Sign inDemoInstall

express

Package Overview
Dependencies
18
Maintainers
1
Versions
276
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.3 to 2.4.4

prof.log

7

History.md
2.4.4 / 2011-08-05
==================
* Fixed `res.header()` intention of a set, even when `undefined`
* Fixed `*`, value no longer required
* Fixed `res.send(204)` support. Closes #771
2.4.3 / 2011-07-14

@@ -3,0 +10,0 @@ ==================

2

lib/express.js

@@ -31,3 +31,3 @@

exports.version = '2.4.3';
exports.version = '2.4.4';

@@ -34,0 +34,0 @@ /**

@@ -55,3 +55,3 @@

// allow 0 args as 204
if (!arguments.length || undefined === body) body = status = 204;
if (!arguments.length || undefined === body) status = 204;

@@ -85,3 +85,3 @@ // determine content type

// populate Content-Length
if (!this.header('Content-Length')) {
if (undefined !== body && !this.header('Content-Length')) {
this.header('Content-Length', Buffer.isBuffer(body)

@@ -105,2 +105,3 @@ ? body.length

this.removeHeader('Content-Length');
body = '';
}

@@ -276,3 +277,3 @@

* @param {String} val
* @return {String}
* @return {ServerResponse} for chaining
* @api public

@@ -282,8 +283,5 @@ */

res.header = function(name, val){
if (val === undefined) {
return this.getHeader(name);
} else {
this.setHeader(name, val);
return val;
}
if (1 == arguments.length) return this.getHeader(name);
this.setHeader(name, val);
return this;
};

@@ -290,0 +288,0 @@

@@ -84,8 +84,8 @@

+ (optional ? slash : '')
+ (format || '') + (capture || '([^/]+?)') + ')'
+ (format || '') + (capture || (format && '([^/.]+?)' || '([^/]+?)')) + ')'
+ (optional || '');
})
.replace(/([\/.])/g, '\\$1')
.replace(/\*/g, '(.+)');
.replace(/\*/g, '(.*)');
return new RegExp('^' + path + '$', sensitive ? '' : 'i');
}
}
{
"name": "express",
"description": "Sinatra inspired web development framework",
"version": "2.4.3",
"version": "2.4.4",
"author": "TJ Holowaychuk <tj@vision-media.ca>",

@@ -15,3 +15,3 @@ "contributors": [

"mime": ">= 0.0.1",
"qs": ">= 0.0.6"
"qs": ">= 0.3.0"
},

@@ -18,0 +18,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc