base64UserInfo returns the base64 encoded version of the given UserInfo. Can't use i.String() here because that returns URL encoded versions of credentials.
(i *url.Userinfo)
| 329 | // base64UserInfo returns the base64 encoded version of the given UserInfo. |
| 330 | // Can't use i.String() here because that returns URL encoded versions of credentials. |
| 331 | func base64UserInfo(i *url.Userinfo) string { |
| 332 | password, _ := i.Password() |
| 333 | return base64.StdEncoding.EncodeToString([]byte(i.Username() + ":" + password)) |
| 334 | } |
| 335 | |
| 336 | // combinedState reports a combined replication state for a pushAndPull |
| 337 | // replication, based on the following criteria: |