Removed two debug print statements I accidentally left in
This commit is contained in:
parent
f21c01e085
commit
8c763db461
|
@ -10,7 +10,7 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Version = "0.19.0"
|
var Version = "0.19.1"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.AddCommand(versionCmd)
|
rootCmd.AddCommand(versionCmd)
|
||||||
|
|
|
@ -252,8 +252,6 @@ func serveHtmlHandler(paths []string, re regexp.Regexp, fileCache *[]string) app
|
||||||
if Filter {
|
if Filter {
|
||||||
filters.Includes = splitQueryParams(r.URL.Query().Get("include"))
|
filters.Includes = splitQueryParams(r.URL.Query().Get("include"))
|
||||||
filters.Excludes = splitQueryParams(r.URL.Query().Get("exclude"))
|
filters.Excludes = splitQueryParams(r.URL.Query().Get("exclude"))
|
||||||
} else {
|
|
||||||
fmt.Println("Filters disabled")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sortOrder := ""
|
sortOrder := ""
|
||||||
|
@ -401,7 +399,6 @@ func serveHtmlHandler(paths []string, re regexp.Regexp, fileCache *[]string) app
|
||||||
preparePath(filePath),
|
preparePath(filePath),
|
||||||
generateQueryParams(&filters, sortOrder),
|
generateQueryParams(&filters, sortOrder),
|
||||||
)
|
)
|
||||||
fmt.Printf("New URL is %v\n", newUrl)
|
|
||||||
http.Redirect(w, r, newUrl, RedirectStatusCode)
|
http.Redirect(w, r, newUrl, RedirectStatusCode)
|
||||||
case r.URL.Path == "/":
|
case r.URL.Path == "/":
|
||||||
filePath, err := pickFile(paths, &filters, sortOrder, fileCache)
|
filePath, err := pickFile(paths, &filters, sortOrder, fileCache)
|
||||||
|
|
Loading…
Reference in New Issue