Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed queryparser bug (leading ?)

  • Loading branch information...
commit fce4cc96c76bccdcb6ccb441d3095c361954ce80 1 parent 20f45ca
@coolaj86 authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  connect-pathname/index.js
  2. +1 −1  connect-pathname/package.json
View
2  connect-pathname/index.js
@@ -19,7 +19,7 @@
req.pathname = req.pathname || urlObj.pathname;
if (!req.query) {
- req.query = req.query || querystring.parse(urlObj.search);
+ req.query = req.query || querystring.parse((urlObj.search||"").substr(1));
}
next();
View
2  connect-pathname/package.json
@@ -2,7 +2,7 @@
"author": "AJ ONeal <coolaj86@gmail.com> (http://coolaj86.info/)",
"name": "connect-pathname",
"description": "Add's req.pathname to requests in connect",
- "version": "0.6.1",
+ "version": "1.0.0",
"homepage": "http://github.com/coolaj86/steve",
"repository": {
"type": "git",
Please sign in to comment.
Something went wrong with that request. Please try again.