Commit 599c4522 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

HTTP_DealWithProxy: Only add http:// to proxy string when needed.

parent 25678813
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment