• Anthony Yeh's avatar
    Fix apiserver proxy path rewriting. · 695b0888
    Anthony Yeh authored
    1) Absolute paths without a hostname were being rewritten relative to
       the current page, rather than relative to the current host.
       e.g. When viewing /some/page.html, it would rewrite:
           /other/page.html => proxyPrepend/some/other/page.html
       Instead, it should rewrite:
           /other/page.html => proxyPrepend/other/page.html
    
    2) Trailing slashes were being stripped from all rewritten URLs.
       This is because path.Join() always calls path.Clean() as well:
       http://golang.org/pkg/path/#Join
    695b0888
Name
Last commit
Last update
Godeps Loading commit data...
api Loading commit data...
build Loading commit data...
cluster Loading commit data...
cmd Loading commit data...
contrib Loading commit data...
docs Loading commit data...
examples Loading commit data...
hack Loading commit data...
hooks Loading commit data...
pkg Loading commit data...
plugin Loading commit data...
test Loading commit data...
third_party Loading commit data...
www Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIB.md Loading commit data...
CONTRIBUTING.md Loading commit data...
DESIGN.md Loading commit data...
LICENSE Loading commit data...
MAINTAINERS.md Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
Vagrantfile Loading commit data...
logo.pdf Loading commit data...
logo.png Loading commit data...
logo.svg Loading commit data...
logo_usage_guidelines.md Loading commit data...