Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dkx/http-server

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dkx/http-server - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

4

lib/response/response.js

@@ -24,5 +24,7 @@ "use strict";

hasHeader(name) {
name = name.toLowerCase();
return typeof this._headers[name] !== 'undefined';
}
getHeader(name, defaultValue) {
name = name.toLowerCase();
return this.hasHeader(name) ?

@@ -34,2 +36,3 @@ this._headers[name] :

const append = {};
name = name.toLowerCase();
append[name] = value;

@@ -49,2 +52,3 @@ return this.clone({

removeHeader(name) {
name = name.toLowerCase();
if (!this.hasHeader(name)) {

@@ -51,0 +55,0 @@ return this.clone();

2

package.json
{
"name": "@dkx/http-server",
"version": "1.2.1",
"version": "1.2.2",
"description": "Minimalistic HTTP server",

@@ -5,0 +5,0 @@ "repository": "git@gitlab.com:dkx/http/server.git",

Sorry, the diff of this file is not supported yet

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