Socket
Socket
Sign inDemoInstall

ecstatic

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ecstatic - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

11

lib/ecstatic/status-handlers.js

@@ -20,5 +20,10 @@ exports['304'] = function (res, next) {

exports['405'] = function (res, next, opts) {
res.setHeader('allow', (opts && opts.allow) || 'GET, HEAD');
res.writeHead(405, res.headers);
res.end();
if (typeof next === "function") {
next();
}
else {
res.setHeader('allow', (opts && opts.allow) || 'GET, HEAD');
res.writeHead(405, res.headers);
res.end();
}
};

@@ -25,0 +30,0 @@

@@ -5,3 +5,3 @@ {

"description": "A simple static file server middleware that works with both Express and Flatiron",
"version": "0.1.5",
"version": "0.1.6",
"homepage": "https://github.com/jesusabdullah/node-ecstatic",

@@ -8,0 +8,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc