Skip to content

Commit dfc552b

Browse files
committed
revert hash session
1 parent 9407400 commit dfc552b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

quackpipe.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package main
22

33
import (
4-
"crypto/sha256"
54
"bufio"
65
"database/sql"
76
_ "embed"
@@ -336,13 +335,15 @@ func main() {
336335
default_params = r.URL.Query().Get("default_params")
337336
}
338337
// auth to hash based temp file storage
338+
/*
339339
username, password, ok := r.BasicAuth()
340340
if ok && len(password) > 0 {
341341
hash := sha256.Sum256([]byte(username + password))
342342
hashdb, _ := fmt.Printf("/tmp/%x.db", hash)
343343
repath := regexp.MustCompile(`(.*?)\?`)
344344
default_params = repath.ReplaceAllString(default_params, repath+"?")
345345
}
346+
*/
346347
// extract FORMAT from query and override the current `default_format`
347348
cleanquery, format := extractAndRemoveFormat(query)
348349
if len(format) > 0 {

0 commit comments

Comments
 (0)