Skip to content

Commit

Permalink
Merge pull request treeform#104 from doongjohn/master
Browse files Browse the repository at this point in the history
Fix set range error treeform#103
  • Loading branch information
guzba authored Jul 28, 2023
2 parents 1fd7202 + d83a003 commit 3f76aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/puppy/platforms/win32/platform.nim
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ proc internalFetch*(req: Request): Response {.raises: [PuppyError].} =
) == 0:

let error = GetLastError()
if error in {
if error in [
ERROR_WINHTTP_SECURE_FAILURE,
ERROR_INTERNET_INVALID_CA,
ERROR_INTERNET_SEC_CERT_DATE_INVALID,
Expand All @@ -126,7 +126,7 @@ proc internalFetch*(req: Request): Response {.raises: [PuppyError].} =
ERROR_INTERNET_SEC_CERT_REV_FAILED,
ERROR_INTERNET_SEC_CERT_REVOKED,
ERROR_INTERNET_SEC_CERT_ERRORS
} and req.allowAnyHttpsCertificate:
] and req.allowAnyHttpsCertificate:
# If this is a certificate error but we should allow any HTTPS cert,
# we need to set some options and retry sending the request.
# https://stackoverflow.com/questions/19338395/how-do-you-use-winhttp-to-do-ssl-with-a-self-signed-cert
Expand Down

0 comments on commit 3f76aa3

Please sign in to comment.