Merge branch 'rewrite' of https://github.com/lhorie/mithril.js into call-async

This commit is contained in:
impinball 2016-08-03 20:32:38 -04:00
commit 2c3a0ebb3a
15 changed files with 802 additions and 717 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 = ""