Add config option "disablePathToLower"

Enabling this prevents lowercasing of the path/url.

Fixes #557
This commit is contained in:
chrongzhang 2015-09-01 20:53:25 +08:00 committed by Bjørn Erik Pedersen
parent 49fe04c0bd
commit 52d94fa675
7 changed files with 45 additions and 11 deletions

View file

@ -160,6 +160,7 @@ func LoadDefaultSettings() {
viper.SetDefault("Blackfriday", helpers.NewBlackfriday())
viper.SetDefault("RSSUri", "index.xml")
viper.SetDefault("SectionPagesMenu", "")
viper.SetDefault("DisablePathToLower", false)
}
// InitializeConfig initializes a config file with sensible default configuration flags.