From 8192d853bdc1b0e5962d5f4fdecd9da1063d7f6d Mon Sep 17 00:00:00 2001 From: Pablo Date: Tue, 1 Feb 2022 11:03:30 -0500 Subject: [PATCH] change URI with URL --- roundtriper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roundtriper.go b/roundtriper.go index 4b3fe13..b664aac 100644 --- a/roundtriper.go +++ b/roundtriper.go @@ -219,7 +219,7 @@ func getCachedResponse(cacheInteractor cache.ICacheInteractor, req *http.Request } func getCacheKey(req *http.Request) (key string) { - key = fmt.Sprintf("%s %s", req.Method, req.RequestURI) + key = fmt.Sprintf("%s %s", req.Method, req.URL) if (strings.ToLower(req.Header.Get(HeaderCacheControl)) == "private") && req.Header.Get(HeaderAuthorization) != "" { key = fmt.Sprintf("%s %s", key, req.Header.Get(HeaderAuthorization))