mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-09-04 05:56:23 -07:00
Remove "Verbosity" config field and rename "DebugMode" to "Verbose" for enabling command line output on errors
This commit is contained in:
parent
138b41bf0a
commit
8e9543970a
9 changed files with 43 additions and 26 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
|
||||
// ValidReferer checks to make sure that the incoming request is from the same domain (or if debug mode is enabled)
|
||||
func ValidReferer(request *http.Request) bool {
|
||||
if config.GetDebugMode() {
|
||||
if config.VerboseMode() {
|
||||
return true
|
||||
}
|
||||
referer := request.Referer()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue