Comparing version 2.5.1 to 2.5.2
@@ -0,4 +1,6 @@ | ||
const qs = require('querystring') | ||
module.exports = (req, url) => { | ||
const [pathRoute, search] = url.split('?') | ||
req.path = pathRoute | ||
const [path, search] = url.split('?') | ||
req.path = path | ||
switch (search) { | ||
@@ -8,3 +10,3 @@ case undefined: | ||
req.search = '?' | ||
req.query = Object.create({}) | ||
req.query = {} | ||
break | ||
@@ -14,3 +16,2 @@ } | ||
req.search = '?' + search | ||
const qs = require('querystring') | ||
req.query = qs.parse(search.replace(/\[\]=/g, '=')) | ||
@@ -17,0 +18,0 @@ } |
{ | ||
"name": "0http", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"description": "Cero friction HTTP request router. The need for speed!", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# 0http | ||
[![NPM version](https://img.shields.io/npm/v/0http.svg?style=flat)](https://www.npmjs.com/package/0http) | ||
Cero friction HTTP framework: | ||
@@ -3,0 +5,0 @@ - Tweaked Node.js Server for high throughput. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16759
220