HTTP_HttpSendRequestW was getting invoked with a null verb, default to

the GET method.
This commit is contained in:
David McCullough 2005-02-02 09:56:35 +00:00 committed by Alexandre Julliard
parent fd91013b46
commit 10ff5e1e81
1 changed files with 3 additions and 2 deletions

View File

@ -1506,10 +1506,11 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
INTERNET_SetLastError(0);
/* We must have a verb */
/* if the verb is NULL default to GET */
if (NULL == lpwhr->lpszVerb)
{
goto lend;
static const WCHAR szGET[] = { 'G','E','T', 0 };
lpwhr->lpszVerb = WININET_strdupW(szGET);
}
/* if we are using optional stuff, we must add the fixed header of that option length */