e293fe84c3
* adding UI handlers and UI header configuration * forcing specific static headers * properly getting UI config value from config/environment * fixing formatting in stub UI text * use http.Header * case-insensitive X-Vault header check * fixing var name * wrap both stubbed and real UI in header handler * adding test for >1 keys
17 lines
228 B
Go
17 lines
228 B
Go
// +build !ui
|
|
|
|
package http
|
|
|
|
import (
|
|
assetfs "github.com/elazarl/go-bindata-assetfs"
|
|
)
|
|
|
|
func init() {
|
|
uiBuiltIn = false
|
|
}
|
|
|
|
// assetFS is a stub for building Vault without a UI.
|
|
func assetFS() *assetfs.AssetFS {
|
|
return nil
|
|
}
|