Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweak committed Aug 7, 2024
1 parent af6ec14 commit 6d7d651
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/surrogate/providers/common.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package providers

import (
"fmt"
"net/http"
"net/url"
"regexp"
Expand Down Expand Up @@ -207,6 +208,7 @@ func (s *baseStorage) purgeTag(tag string) []string {
func (s *baseStorage) Store(response *http.Response, cacheKey string) error {
h := response.Header

fmt.Println(response.Request.RequestURI, response.Request.URL, response.Request.URL.RawPath)
cacheKey = url.QueryEscape(cacheKey)

urlRegexp := regexp.MustCompile("(^|" + regexp.QuoteMeta(souinStorageSeparator) + ")" + regexp.QuoteMeta(cacheKey) + "(" + regexp.QuoteMeta(souinStorageSeparator) + "|$)")
Expand Down

0 comments on commit 6d7d651

Please sign in to comment.