Skip to content
Myr

use local copy of parseUrl

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Roman Shtylman · committed by Roman Shtylman · parent 9bc63d9 · Browse files · 3 files+5 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−4 removed

  • other:+5 added−4 removed

3 files+5 added−4 removed

modified:lib/router/index.js+2 added-2 removed
4 unmodified lines
5var Route = require('./route')6 , utils = require('../utils')7 , methods = require('methods')8 , debug = require('debug')('express:router')9 , parse = require('connect').utils.parseUrl;9 , parseUrl = utils.parseUrl;1011/**12 * Expose `Router` constructor.13 */
144 unmodified lines
158 req.originalUrl = req.originalUrl || req.url;159 removed = '';160161 try {162 var path = parse(req).pathname;162 var path = parseUrl(req).pathname;163 if (undefined == path) path = '/';164165 // route object and not middleware166 var route = layer.route;
205 unmodified lines
modified:lib/request.js+1 added-1 removed
8 unmodified lines
9 , utils = require('./utils')10 , connect = require('connect')11 , fresh = require('fresh')12 , parseRange = require('range-parser')13 , parse = connect.utils.parseUrl13 , parse = utils.parseUrl14 , mime = connect.mime;1516/**17 * Request prototype.
418 unmodified lines
modified:lib/utils.js+2 added-1 removed