Merge lp:~thumper/juju-core/fix-default-http into lp:~go-bot/juju-core/trunk
Proposed by
Tim Penhey
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1997 |
Proposed branch: | lp:~thumper/juju-core/fix-default-http |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
19 lines (+3/-3) 1 file modified
cmd/cmd.go (+3/-3) |
To merge this branch: | bzr merge lp:~thumper/juju-core/fix-default-http |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+192034@code.launchpad.net |
Commit message
Don't replace the default http transport.
The local provider is currently broken as the file protocol
is registered in one init block, and the default transport
is replaced in another init block.
This change just avoids replacing the default transport in
an init block.
Description of the change
Don't replace the default http transport.
The local provider is currently broken as the file protocal
is registered in one init block, and the default transport
is replaced in another init block.
This change just avoids replacing the default transport in
an init block.
To post a comment you must log in.
Reviewers: mp+192034_ code.launchpad. net,
Message:
Please take a look.
Description:
Don't replace the default http transport.
The local provider is currently broken as the file protocal
is registered in one init block, and the default transport
is replaced in another init block.
This change just avoids replacing the default transport in
an init block.
https:/ /code.launchpad .net/~thumper/ juju-core/ fix-default- http/+merge/ 192034
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/15660043/
Affected files (+5, -3 lines):
A [revision details]
M cmd/cmd.go
Index: [revision details] 20131018031007- g87i6t5sgxtr7gx l
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-
+New revision: <email address hidden>
Index: cmd/cmd.go
=== modified file 'cmd/cmd.go'
--- cmd/cmd.go 2013-10-17 22:48:19 +0000
+++ cmd/cmd.go 2013-10-21 18:10:36 +0000
@@ -15,12 +15,12 @@
"strings"
"launchpad. net/gnuflag" net/juju- core/utils"
-
- "launchpad.
)
func init() { nsport = utils.NewHttpTr ansport( ) nsport. (*http. Transport) .DisableKeepAli ves = true
- http.DefaultTra
+ // Don't replace the default transport as other init blocks
+ // register protocols.
+ http.DefaultTra
}
// ErrSilent can be returned from Run to signal that Main should exit with