HTTP_HttpSendRequestW was getting invoked with a null verb, default to
authorDavid McCullough <davidm@snapgear.com>
Wed, 2 Feb 2005 09:56:35 +0000 (09:56 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 2 Feb 2005 09:56:35 +0000 (09:56 +0000)
the GET method.

dlls/wininet/http.c

index 294e29a588cb2d2ea3961494b76ab50658c9bb20..5b94fee594fa08b21cefb721ec7932487b677681 100644 (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 */