From 4b0fc127941aebafae3e94b1b7926c34a272d943 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 14 May 2020 18:04:55 -0600 Subject: [PATCH] dynamic port --- extensions/network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/network.cpp b/extensions/network.cpp index 99495b0..cecd2b1 100644 --- a/extensions/network.cpp +++ b/extensions/network.cpp @@ -16,7 +16,7 @@ HttpRequest::HttpRequest( static std::atomic internet = NULL; if (!internet) internet = WinHttpOpen(agentName, WINHTTP_ACCESS_TYPE_DEFAULT_PROXY, NULL, NULL, 0); if (internet) - if (InternetHandle connection = WinHttpConnect(internet, serverName, INTERNET_DEFAULT_HTTPS_PORT, 0)) + if (InternetHandle connection = WinHttpConnect(internet, serverName, INTERNET_DEFAULT_PORT, 0)) if (InternetHandle request = WinHttpOpenRequest(connection, action, objectName, httpVersion, referrer, acceptTypes, requestFlags)) if (WinHttpSendRequest(request, headers, -1UL, body.empty() ? NULL : body.data(), body.size(), body.size(), NULL)) {