mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
Ignore revocation servers failure (Thanks 123DMWM)
This commit is contained in:
parent
f2aa0f06fc
commit
a8b230bebc
@ -567,8 +567,8 @@ static cc_result Http_StartRequest(struct HttpRequest* req, String* url, HINTERN
|
||||
static const char* verbs[3] = { "GET", "HEAD", "POST" };
|
||||
struct HttpCacheEntry entry;
|
||||
String path; char pathBuffer[URL_MAX_SIZE + 1];
|
||||
DWORD flags, bufferLen;
|
||||
cc_result res;
|
||||
DWORD flags;
|
||||
|
||||
HttpCache_MakeEntry(url, &entry, &path);
|
||||
Mem_Copy(pathBuffer, path.buffer, path.length);
|
||||
@ -583,6 +583,12 @@ static cc_result Http_StartRequest(struct HttpRequest* req, String* url, HINTERN
|
||||
curReq = *handle;
|
||||
if (!curReq) return GetLastError();
|
||||
|
||||
/* ignore revocation stuff */
|
||||
bufferLen = sizeof(flags);
|
||||
InternetQueryOption(*handle, INTERNET_OPTION_SECURITY_FLAGS, (void*)&bufferLen, &flags);
|
||||
flags |= SECURITY_FLAG_IGNORE_REVOCATION;
|
||||
InternetSetOption(*handle, INTERNET_OPTION_SECURITY_FLAGS, &flags, sizeof(flags));
|
||||
|
||||
Http_SetRequestHeaders(req);
|
||||
return HttpSendRequestA(*handle, NULL, 0, req->data, req->size) ? 0 : GetLastError();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user