Socket
Socket
Sign inDemoInstall

router

Package Overview
Dependencies
1
Maintainers
0
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.1 to 0.3.2

10

index.js

@@ -149,3 +149,4 @@ var common = require('common');

}
response.writeHead(options.status, {
var headers = {
'content-type':mimes.resolve(url),

@@ -155,3 +156,8 @@ 'content-length':stat.size,

'last-modified':stat.mtime.toUTCString()
});
};
if (options.cacheMaxAge !== undefined)
headers['Cache-Control'] = 'public, max-age=' + options.cacheMaxAge;
response.writeHead(options.status, headers);
fs.createReadStream(url).pipe(response);

@@ -158,0 +164,0 @@ }));

2

package.json
{
"name":"router",
"version":"0.3.1",
"version":"0.3.2",
"description":"A lean and mean web router",

@@ -5,0 +5,0 @@ "contributors": [

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc