Skip to content

Commit 7105325

Browse files
author
Jonathan Gawrych
committed
Fix string use after destruct introduced in merge commit b7fa0b1
1 parent 3e8dcf5 commit 7105325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/src/http/client/http_client_winhttp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ class winhttp_client : public _http_client_communicator
412412
DWORD access_type;
413413
LPCWSTR proxy_name;
414414
LPCWSTR proxy_bypass = WINHTTP_NO_PROXY_BYPASS;
415+
utility::string_t proxy_str;
415416
http::uri uri;
416417

417418
const auto& config = client_config();
@@ -485,7 +486,6 @@ class winhttp_client : public _http_client_communicator
485486
}
486487
else
487488
{
488-
utility::string_t proxy_str;
489489
if (uri.port() > 0)
490490
{
491491
utility::ostringstream_t ss;

0 commit comments

Comments
 (0)