Replace '\' with '/' in the URL in HTTP_HttpSendRequestW.

This commit is contained in:
Maxime Bellengé 2005-01-25 16:43:17 +00:00 committed by Alexandre Julliard
parent 40d94dfc4e
commit e220907c71

View file

@ -1534,6 +1534,11 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
nLen--;
lpwhr->lpszPath[nLen]='\0';
}
/* Replace '\' with '/' */
while (nLen>0) {
nLen--;
if (lpwhr->lpszPath[nLen] == '\\') lpwhr->lpszPath[nLen]='/';
}
}
if(CSTR_EQUAL != CompareStringW( LOCALE_SYSTEM_DEFAULT, NORM_IGNORECASE,