Skip to content

Commit

Permalink
couple of small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Jan 18, 2021
1 parent d1a9d13 commit 38329d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbs/datasets.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (API) Datasets(params Record, w http.ResponseWriter) (int64, error) {

// parse detail arugment
detail, _ := getSingleValue(params, "detail")
if strings.ToLower(detail) != "true" {
if strings.ToLower(detail) == "true" {
tmpl["Detail"] = true
}

Expand Down
2 changes: 1 addition & 1 deletion web/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func authMiddleware(next http.Handler) http.Handler {
w.WriteHeader(http.StatusForbidden)
return
}
if config.Config.Verbose > 0 {
if config.Config.Verbose > 1 {
log.Printf("Auth layer status: %v headers: %+v\n", status, r.Header)
}
// Call the next handler
Expand Down

0 comments on commit 38329d9

Please sign in to comment.