Socket
Socket
Sign inDemoInstall

ecstatic

Package Overview
Dependencies
Maintainers
2
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.7.0 to 0.7.1

3

ChangeLog.md

@@ -0,1 +1,4 @@

2015/03/27 Version 0.7.1
- Treat ENOTDIR as 404 (same as ENOENT)
2015/03/18 Version 0.7.0

@@ -2,0 +5,0 @@ - Add support for specifying default content-type (as an alternative to application/octet-stream)

2

lib/ecstatic.js

@@ -77,3 +77,3 @@ #! /usr/bin/env node

fs.stat(file, function (err, stat) {
if (err && err.code === 'ENOENT') {
if (err && (err.code === 'ENOENT' || err.code === 'ENOTDIR')) {
if (req.statusCode == 404) {

@@ -80,0 +80,0 @@ // This means we're already trying ./404.html

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

"description": "A simple static file server middleware that works with both Express and Flatiron",
"version": "0.7.0",
"version": "0.7.1",
"homepage": "https://github.com/jfhbrook/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