ensure define_webjump's alternate url has root path
commit463179007e0658b428a8d9753c4876051f048ccf
authorJohn Foerch <jjfoerch@earthlink.net>
Wed, 24 Dec 2008 00:19:27 +0000 (23 19:19 -0500)
committerJohn Foerch <jjfoerch@earthlink.net>
Wed, 24 Dec 2008 00:19:27 +0000 (23 19:19 -0500)
tree6d696689d58d0122f1648c51206daa444fb257a4
parent02ac53b4fe7b5d12c23538aca537571676908dc6
ensure define_webjump's alternate url has root path

This is to avoid the extra content-negotiation that results from
requesting an url with no path.

compute_url_pre_path replaced with url_path_trim.

This change causes the following test to pass:

  define_webjump("test1", "http://www.example.com/");
  assert_equals(webjumps.get("test1").handler(),
                "http://www.example.com/");
modules/utils.js
modules/webjump.js