test router using file protocol as start point

This commit is contained in:
Leo Horie 2016-08-02 23:21:13 -04:00
parent 20da8d3dc8
commit 8ec3a3f2c5
6 changed files with 686 additions and 676 deletions

View file

@ -2,9 +2,11 @@
var parseURL = require("../test-utils/parseURL")
module.exports = function() {
var protocol = "http:"
var hostname = "localhost"
module.exports = function(options) {
if (options == null) options = {}
var protocol = options.protocol || "http:"
var hostname = options.hostname || "localhost"
var port = ""
var pathname = "/"
var search = ""