From dfc552b39aaf11daacd768b40e01f1bdd73b1bc3 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Tue, 4 Jun 2024 11:11:24 +0200 Subject: [PATCH] revert hash session --- quackpipe.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quackpipe.go b/quackpipe.go index b7268a7..656a4ef 100644 --- a/quackpipe.go +++ b/quackpipe.go @@ -1,7 +1,6 @@ package main import ( - "crypto/sha256" "bufio" "database/sql" _ "embed" @@ -336,6 +335,7 @@ func main() { default_params = r.URL.Query().Get("default_params") } // auth to hash based temp file storage + /* username, password, ok := r.BasicAuth() if ok && len(password) > 0 { hash := sha256.Sum256([]byte(username + password)) @@ -343,6 +343,7 @@ func main() { repath := regexp.MustCompile(`(.*?)\?`) default_params = repath.ReplaceAllString(default_params, repath+"?") } + */ // extract FORMAT from query and override the current `default_format` cleanquery, format := extractAndRemoveFormat(query) if len(format) > 0 {