Replace godep with dep
This commit is contained in:
parent
1e7489927c
commit
bf5616c65b
14883 changed files with 3937406 additions and 361781 deletions
6
vendor/github.com/gregjones/httpcache/httpcache.go
generated
vendored
6
vendor/github.com/gregjones/httpcache/httpcache.go
generated
vendored
|
|
@ -41,7 +41,11 @@ type Cache interface {
|
|||
|
||||
// cacheKey returns the cache key for req.
|
||||
func cacheKey(req *http.Request) string {
|
||||
return req.URL.String()
|
||||
if req.Method == http.MethodGet {
|
||||
return req.URL.String()
|
||||
} else {
|
||||
return req.Method + " " + req.URL.String()
|
||||
}
|
||||
}
|
||||
|
||||
// CachedResponse returns the cached http.Response for req if present, and nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue