diff options
Diffstat (limited to 'src/http')
-rw-r--r-- | src/http/http.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/http.c b/src/http/http.c index 4576d04..441ff8b 100644 --- a/src/http/http.c +++ b/src/http/http.c @@ -301,6 +301,9 @@ bool HttpSetProxy (http_t http, const char* url) { HttpUrlDecodeInplace (widePassword); } } + else { + HttpSetLastErrorFromWinHttp(http); + } ZeroMemory(&urlComponents, sizeof(urlComponents)); urlComponents.dwStructSize = sizeof(urlComponents); @@ -312,6 +315,9 @@ bool HttpSetProxy (http_t http, const char* url) { free(widePassword); return false; } + else { + HttpSetLastErrorFromWinHttp(http); + } if (urlComponents.lpszHostName && urlComponents.dwHostNameLength > 0) { wideUrl2 = wcsdup(urlComponents.lpszHostName); |