From 10ff5e1e81ac495d7eccebe1528885491d89cef6 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Wed, 2 Feb 2005 09:56:35 +0000 Subject: [PATCH] HTTP_HttpSendRequestW was getting invoked with a null verb, default to the GET method. --- dlls/wininet/http.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 294e29a588c..5b94fee594f 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -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 */ -- 2.11.4.GIT