From f09b5b9829a612c28496040085868b588d7ab6e1 Mon Sep 17 00:00:00 2001
From: MikalaiR <nikolay.romanovich@narod.ru>
Date: Mon, 18 Apr 2016 06:37:55 +0000
Subject: netlib: fix proxy connection

git-svn-id: http://svn.miranda-ng.org/main/trunk@16711 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 src/mir_app/src/netlibhttp.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/mir_app/src/netlibhttp.cpp b/src/mir_app/src/netlibhttp.cpp
index 8429ef512c..8adb6c1580 100644
--- a/src/mir_app/src/netlibhttp.cpp
+++ b/src/mir_app/src/netlibhttp.cpp
@@ -454,7 +454,8 @@ INT_PTR NetlibHttpSendRequest(WPARAM wParam, LPARAM lParam)
 				if (ppath && phost)
 					szHost[ppath - phost] = 0;
 
-				pszUrl = ppath ? ppath : "/";
+				if (!usingProxy)
+					pszUrl = ppath ? ppath : "/";
 
 				if (usingProxy && phost && !nlc->dnsThroughProxy) {
 					char *tszHost = mir_strdup(phost);
-- 
cgit v1.2.3