You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

simple-http-proxy

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-http-proxy - npm Package Compare versions

Comparing version

to
0.5.6

5

index.js

@@ -28,6 +28,7 @@

// Should we keep the trailing slash on a root request?
var trailingSlash = endpoint[endpoint.length-1] === '/';
var trailingSlash = endpoint[endpoint.length - 1] === '/';
// If we've got a trailing slash remove it
if (trailingSlash) parsedUrl.pathname = parsedUrl.pathname.slice(0, parsedUrl.pathname.length-1);
if (parsedUrl.pathname === '/') parsedUrl.pathname = '';
if (trailingSlash) parsedUrl.pathname = parsedUrl.pathname.slice(0, parsedUrl.pathname.length - 1);

@@ -34,0 +35,0 @@ return function simpleHttpProxy(req, res, next) {

2

package.json
{
"name": "simple-http-proxy",
"version": "0.5.5",
"version": "0.5.6",
"description": "Simple proxy middleware",

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