From 599c4522a8a41c4a7d55d76520cef6a48d46007e Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Mon, 15 Dec 2003 19:47:31 +0000 Subject: [PATCH] HTTP_DealWithProxy: Only add http:// to proxy string when needed. --- dlls/wininet/http.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 20f50993759..c2d0ca5ea3c 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -504,7 +504,10 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOA hIC, UrlComponents.lpszHostName = buf; UrlComponents.dwHostNameLength = MAXHOSTNAME; - sprintf(proxy, "http://%s/", hIC->lpszProxy); + if (strncasecmp(hIC->lpszProxy,"http://",strlen("http://"))) + sprintf(proxy, "http://%s/", hIC->lpszProxy); + else + strcpy(proxy,hIC->lpszProxy); if( !InternetCrackUrlA(proxy, 0, 0, &UrlComponents) ) return FALSE; if( UrlComponents.dwHostNameLength == 0 ) -- 2.11.4.GIT