From b75308ed280051e4bade4cad99e81c78fa6116ec Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 19 Nov 2023 17:31:42 +0100 Subject: [PATCH] some cleanups --- contrib/verify-only.yml | 2 +- cookie/store.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/verify-only.yml b/contrib/verify-only.yml index 41408c6..c0052de 100644 --- a/contrib/verify-only.yml +++ b/contrib/verify-only.yml @@ -8,7 +8,7 @@ cookie: -----END PUBLIC KEY----- backend: sync: - interval: 20s + interval: 5s base-url: http://localhost:1234 token: this-is-a-very-secret-token in-memory: {} diff --git a/cookie/store.go b/cookie/store.go index ee89a0c..c774154 100644 --- a/cookie/store.go +++ b/cookie/store.go @@ -213,7 +213,6 @@ func (st *Store) runGC(interval time.Duration) { func (st *Store) syncRevocations(client *http.Client, syncBaseURL *url.URL, token string) { req, _ := http.NewRequest("GET", syncBaseURL.JoinPath("revocations").String(), nil) - req.Header.Set("Content-Type", "application/json") req.Header.Set("Authorization", "Bearer "+token) resp, err := client.Do(req) if err != nil {