VolantisDev / Launchpad

Step up your non-Steam game! Generate Steam-compatible .exe files to effortlessly launch any game through Steam with overlay support.
https://launchpad.games
MIT License
88 stars 3 forks source link

Determine why returnCode can be -1 or 1 even though statusCode is 200 in both ca... #278

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 3 years ago

Determine why returnCode can be -1 or 1 even though statusCode is 200 in both cases

https://github.com/VolantisDev/Launchpad/blob/1360aacde2bf3249d4a6fd3e9148d95f2e66ec2e/Lib/Shared/DataLib/HttpReq/WinHttpReq.ahk#L53


        this.statusCode := WinHttpReq.winHttp.Status()

        this.returnCode := returnCode
        ; TODO: Determine why returnCode can be -1 or 1 even though statusCode is 200 in both cases
        return this.statusCode == 200 ? -1 : 1
    }

    ProcessHeaders(oHTTP) {

962d46d360ecab2fade21e38d6613a261e061761