Skip to content

Commit

Permalink
set WINHTTP_FLAG_SECURE when using HTTPS port
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Dec 31, 2019
1 parent 9c43b77 commit 9fc0e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/impl/WindowsHttpRequester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ unsigned int WindowsHttpRequester::Request(const Http::Request& pRequest, TextWr
nullptr,
WINHTTP_NO_REFERER,
WINHTTP_DEFAULT_ACCEPT_TYPES,
0);
(nPort == INTERNET_DEFAULT_HTTPS_PORT) ? WINHTTP_FLAG_SECURE : 0);

if (hRequest == nullptr)
{
Expand Down

0 comments on commit 9fc0e1a

Please sign in to comment.