diff --git a/CHANGELOG.md b/CHANGELOG.md index e06a745..9a2b424 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ # go-utils + +## [v1.39.3] - 2024-07-29 +### Fixes +- use http get instead of head to check reachable url + + ## [v1.39.2] - 2024-07-09 ### Other Improvements -- fix vulnerabilities in go.mod +- fix vulnerabilities in go.mod ([#63](https://github.com/kumparan/go-utils/issues/63)) @@ -156,9 +162,6 @@ ## [v1.20.0] - 2022-03-11 - - -## [v.1.20.0] - 2022-03-11 ### New Features - add constraint size gql directive ([#30](https://github.com/kumparan/go-utils/issues/30)) @@ -256,11 +259,11 @@ - add money formatter for multiple currencies ([#13](https://github.com/kumparan/go-utils/issues/13)) - -## [v1.8.0] - 2020-12-10 - ## [v1.7.1] - 2020-12-10 + + +## [v1.8.0] - 2020-12-10 ### New Features - add formatter for indonesian money and date @@ -325,7 +328,8 @@ - init go-utils -[Unreleased]: https://github.com/kumparan/go-utils/compare/v1.39.2...HEAD +[Unreleased]: https://github.com/kumparan/go-utils/compare/v1.39.3...HEAD +[v1.39.3]: https://github.com/kumparan/go-utils/compare/v1.39.2...v1.39.3 [v1.39.2]: https://github.com/kumparan/go-utils/compare/v1.39.1...v1.39.2 [v1.39.1]: https://github.com/kumparan/go-utils/compare/v1.39.0...v1.39.1 [v1.39.0]: https://github.com/kumparan/go-utils/compare/v1.38.0...v1.39.0 @@ -351,8 +355,7 @@ [v1.22.0]: https://github.com/kumparan/go-utils/compare/v1.21.0...v1.22.0 [v1.21.0]: https://github.com/kumparan/go-utils/compare/v1.20.1...v1.21.0 [v1.20.1]: https://github.com/kumparan/go-utils/compare/v1.20.0...v1.20.1 -[v1.20.0]: https://github.com/kumparan/go-utils/compare/v.1.20.0...v1.20.0 -[v.1.20.0]: https://github.com/kumparan/go-utils/compare/v1.19.3...v.1.20.0 +[v1.20.0]: https://github.com/kumparan/go-utils/compare/v1.19.3...v1.20.0 [v1.19.3]: https://github.com/kumparan/go-utils/compare/v1.19.2...v1.19.3 [v1.19.2]: https://github.com/kumparan/go-utils/compare/v1.19.1...v1.19.2 [v1.19.1]: https://github.com/kumparan/go-utils/compare/v1.19.0...v1.19.1 @@ -368,9 +371,9 @@ [v1.12.0]: https://github.com/kumparan/go-utils/compare/v1.11.0...v1.12.0 [v1.11.0]: https://github.com/kumparan/go-utils/compare/v1.10.0...v1.11.0 [v1.10.0]: https://github.com/kumparan/go-utils/compare/v1.9.0...v1.10.0 -[v1.9.0]: https://github.com/kumparan/go-utils/compare/v1.8.0...v1.9.0 -[v1.8.0]: https://github.com/kumparan/go-utils/compare/v1.7.1...v1.8.0 -[v1.7.1]: https://github.com/kumparan/go-utils/compare/v1.7.0...v1.7.1 +[v1.9.0]: https://github.com/kumparan/go-utils/compare/v1.7.1...v1.9.0 +[v1.7.1]: https://github.com/kumparan/go-utils/compare/v1.8.0...v1.7.1 +[v1.8.0]: https://github.com/kumparan/go-utils/compare/v1.7.0...v1.8.0 [v1.7.0]: https://github.com/kumparan/go-utils/compare/v1.6.0...v1.7.0 [v1.6.0]: https://github.com/kumparan/go-utils/compare/v1.5.0...v1.6.0 [v1.5.0]: https://github.com/kumparan/go-utils/compare/v1.4.0...v1.5.0 diff --git a/url.go b/url.go index b634436..e595127 100644 --- a/url.go +++ b/url.go @@ -22,7 +22,7 @@ func JoinURL(baseURL string, pathElements ...string) (string, error) { // IsURLReachable check is the url reachable func IsURLReachable(url string) bool { - res, err := http.Head(url) //nolint:gosec + res, err := http.Get(url) //nolint:gosec if err != nil { log.WithField("url", url).Error(err) return false