scraper SSL fix

This commit is contained in:
m.nazemi
2026-04-12 15:11:37 +03:30
parent bf3f21fb51
commit 07320c58b0
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -14,13 +14,13 @@ const (
)
// Get OJS Number
func GetOJS(baseURL string, year int, date string) (string, error) {
func GetOJS(baseURL string, year int, date string, client *http.Client) (string, error) {
var (
ojs string
)
url := fmt.Sprintf(calendarUrl, baseURL, year)
resp, err := http.Get(url)
resp, err := client.Get(url)
if err != nil {
return ojs, err
}