Skip to content

Commit 870d24c

Browse files
authored
Update ref.go
1 parent 2223ab3 commit 870d24c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ref.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func (r *Ref) IsValidURI(basepaths ...string) bool {
7272
if err != nil {
7373
return false
7474
}
75+
defer rr.Body.Close()
7576

7677
return rr.StatusCode/100 == 2
7778
}

0 commit comments

Comments
 (0)