Socket
Socket
Sign inDemoInstall

http-server

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-server - npm Package Compare versions

Comparing version 0.8.2 to 0.8.3

4

lib/http-server.js

@@ -46,3 +46,3 @@ 'use strict';

this.cache = options.cache || 3600; // in seconds.
this.cache = options.cache === undefined ? 3600 : options.cache; // in seconds.
this.showDir = options.showDir !== 'false';

@@ -70,3 +70,3 @@ this.autoIndex = options.autoIndex !== 'false';

this.headers['Access-Control-Allow-Origin'] = '*';
this.headers['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Type, Accept';
this.headers['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Type, Accept, Range';

@@ -73,0 +73,0 @@ before.push(corser.create());

{
"name": "http-server",
"version": "0.8.2",
"version": "0.8.3",
"description": "A simple zero-configuration command-line http server",

@@ -5,0 +5,0 @@ "main": "./lib/http-server",

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