Skip to content

Commit

Permalink
revert hash session
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani committed Jun 4, 2024
1 parent 9407400 commit dfc552b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quackpipe.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"crypto/sha256"
"bufio"
"database/sql"
_ "embed"
Expand Down Expand Up @@ -336,13 +335,15 @@ 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))
hashdb, _ := fmt.Printf("/tmp/%x.db", hash)
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 {
Expand Down

0 comments on commit dfc552b

Please sign in to comment.