File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
- "crypto/sha256"
5
4
"bufio"
6
5
"database/sql"
7
6
_ "embed"
@@ -336,13 +335,15 @@ func main() {
336
335
default_params = r .URL .Query ().Get ("default_params" )
337
336
}
338
337
// auth to hash based temp file storage
338
+ /*
339
339
username, password, ok := r.BasicAuth()
340
340
if ok && len(password) > 0 {
341
341
hash := sha256.Sum256([]byte(username + password))
342
342
hashdb, _ := fmt.Printf("/tmp/%x.db", hash)
343
343
repath := regexp.MustCompile(`(.*?)\?`)
344
344
default_params = repath.ReplaceAllString(default_params, repath+"?")
345
345
}
346
+ */
346
347
// extract FORMAT from query and override the current `default_format`
347
348
cleanquery , format := extractAndRemoveFormat (query )
348
349
if len (format ) > 0 {
You can’t perform that action at this time.
0 commit comments