Socket
Socket
Sign inDemoInstall

http-msgs

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-msgs - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "http-msgs",
"version": "1.0.0",
"version": "1.0.1",
"description": "Node module to handle to HTTP status codes",

@@ -5,0 +5,0 @@ "main": "index.js",

# http-msgs
Node module to handle to HTTP status codes
![verson](https://img.shields.io/badge/version-1.0.0-green.svg)
![verson](https://img.shields.io/badge/version-1.0.1-green.svg)
![License](https://img.shields.io/badge/License-MIT-yellowgreen.svg)

@@ -6,0 +6,0 @@

@@ -8,3 +8,3 @@ let contentTypeJSON ={"Content-Type" : "application/json"}

exports.movedPermently = function(req, res, url, resEnd=true){
// redirect temporary
// moved permently
res.writeHead(301,{Location: url } );

@@ -17,3 +17,3 @@ if(resEnd){

// redirect temporary
res.writeHead(301,{Location: url } );
res.writeHead(307,{Location: url } );
if(resEnd){

@@ -26,3 +26,3 @@ res.end();

// redirect perment
res.writeHead(301,{Location: url } );
res.writeHead(308,{Location: url } );
if(resEnd){

@@ -29,0 +29,0 @@ res.end();

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