fast-proxy-lite
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -92,4 +92,8 @@ 'use strict' | ||
function buildURL (source = '', reqBase) { | ||
// issue ref: https://github.com/fastify/fast-proxy/issues/42 | ||
const cleanSource = source.replace(/\/+/g, '/') | ||
// issue ref: https://github.com/fastify/fast-proxy/issues/42, https://github.com/fastify/fast-proxy/issues/76 | ||
let i = 0 | ||
while (source[i] === '/') { | ||
i++ | ||
} | ||
const cleanSource = i > 0 ? '/' + source.substring(i) : source | ||
@@ -96,0 +100,0 @@ return new URL(cleanSource, reqBase) |
{ | ||
"name": "fast-proxy-lite", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Forward your HTTP request to another server.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
17311
355