Skip to content

Commit

Permalink
Use request url, not response request url.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreer committed Nov 21, 2024
1 parent 32b2eef commit f6b3098
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/uhttp/dbcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f6b3098

Please sign in to comment.