Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
fix for curl error on old windows
Browse files Browse the repository at this point in the history
  • Loading branch information
esge committed Aug 26, 2021
1 parent 30c08aa commit e2573c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PoE-HarvestVendor.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -1710,15 +1710,15 @@ getLeagues() {
; Hack for people with outdated certificates
shell := ComObjCreate("WScript.Shell")
exec := shell.Exec("curl.exe -k " . leagueAPIurl)
response := exec.StdOut.ReadAll()
response := exec.StdOut.ReadAll()
} else {
oWhr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
oWhr.Open("GET", leagueAPIurl, false)
oWhr.SetRequestHeader("Content-Type", "application/json")
oWhr.Send()
response := oWhr.ResponseText
}
if oWhr.Status == "200" {
if (oWhr.Status == "200" or FileExist("curl.exe")) {
if InStr(response, "Standard") > 0 {
parsed := Jxon_load(response)
;couldnt figure out how to make the number in parsed.1.id work as paramter, it doesnt like %% in there between the dots
Expand Down

0 comments on commit e2573c7

Please sign in to comment.