summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-openapi/spec/ref.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-openapi/spec/ref.go')
-rw-r--r--vendor/github.com/go-openapi/spec/ref.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/github.com/go-openapi/spec/ref.go b/vendor/github.com/go-openapi/spec/ref.go
index 08ff869b2f..1f31a9ead0 100644
--- a/vendor/github.com/go-openapi/spec/ref.go
+++ b/vendor/github.com/go-openapi/spec/ref.go
@@ -68,10 +68,12 @@ func (r *Ref) IsValidURI(basepaths ...string) bool {
}
if r.HasFullURL {
+ //#nosec
rr, err := http.Get(v)
if err != nil {
return false
}
+ defer rr.Body.Close()
return rr.StatusCode/100 == 2
}