mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 15:51:01 +00:00
fix the spots where gitlab thinks we're using hard-coded passwords
This commit is contained in:
parent
8fc70e6494
commit
3816a7fad4
2 changed files with 2 additions and 2 deletions
|
|
@ -566,7 +566,7 @@ func (h *Handler) chkInternal(handler http.HandlerFunc) http.HandlerFunc {
|
|||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
if h.auth != nil {
|
||||
secret, ok := r.Header["X-Feature-Key"]
|
||||
secretString := ""
|
||||
var secretString string
|
||||
if ok {
|
||||
secretString = secret[0]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ func TestClusterStuff(t *testing.T) {
|
|||
t.Fatalf("getting client: %v", err)
|
||||
}
|
||||
ctx := context.Background()
|
||||
token := ""
|
||||
var token string
|
||||
// generate auth token and add to context
|
||||
if auth {
|
||||
token = GetAuthToken(t)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue