kubernetes/pkg/client/restclient
k8s-merge-robot b3c2c9eb5d Merge pull request #27381 from dims/fix-issue-2967
Automatic merge from submit-queue

Fix problem specifying fqdn:port in command line

When specifying --server in kubectl for example, we end up
with failure if you use "localhost:8080" instead of
"127.0.0.1:8080". This is because of the way url.Parse
works as shown in snippet:
https://play.golang.org/p/luD57S6sEz

Essentially localhost ends up as the Scheme and NOT as the Host.
So we add another check to make sure we prepend the scheme
when Host ends up being empty as well. Tested with
"kubectl --server localhost:8080 get po"

Fixes #2967
2016-07-07 13:21:58 -07:00
..
client_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
client.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
config_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
config.go Merge pull request #26755 from david-mcmahon/fix-headers 2016-06-29 18:46:07 -07:00
plugin_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
plugin.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
request_test.go "was not created" should be "was created" 2016-07-06 17:42:40 +08:00
request.go Merge branch 'master' into fix-typos 2016-07-04 11:20:47 +08:00
transport.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
url_utils_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
url_utils.go Fix problem specifying fqdn:port in command line 2016-07-05 10:10:12 -04:00
urlbackoff_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
urlbackoff.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
versions.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00