From f6b30987ecebef1af79c6785e4def6de3561bcf0 Mon Sep 17 00:00:00 2001 From: Geoff Greer Date: Thu, 21 Nov 2024 10:14:15 -0800 Subject: [PATCH] Use request url, not response request url. --- pkg/uhttp/dbcache.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/uhttp/dbcache.go b/pkg/uhttp/dbcache.go index 9250297a..21409127 100644 --- a/pkg/uhttp/dbcache.go +++ b/pkg/uhttp/dbcache.go @@ -269,10 +269,7 @@ func (d *DBCache) Set(req *http.Request, value *http.Response) error { return err } - var url string - if value.Request != nil { - url = value.Request.URL.String() - } + url := req.URL.String() err = d.insert(req.Context(), key,