backend: Hardcode backend scheme in Factory
Our ParseConfig implementations always expect a specific scheme, thus no other scheme would work.
This commit is contained in:
parent
705ad51bcc
commit
50e0d5e6b5
14 changed files with 43 additions and 29 deletions
|
@ -31,7 +31,7 @@ type Backend struct {
|
|||
}
|
||||
|
||||
func NewFactory() location.Factory {
|
||||
return location.NewHTTPBackendFactory(ParseConfig, StripPassword, Create, Open)
|
||||
return location.NewHTTPBackendFactory("rest", ParseConfig, StripPassword, Create, Open)
|
||||
}
|
||||
|
||||
// the REST API protocol version is decided by HTTP request headers, these are the constants.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue