Hans Leidekker : wininet: Don't send any data after being redirected.
Alexandre Julliard
julliard at winehq.org
Wed May 6 10:33:16 CDT 2009
Module: wine
Branch: master
Commit: 6bb143af3343bf4ab8f1a0d68664c65307bb9b21
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6bb143af3343bf4ab8f1a0d68664c65307bb9b21
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed May 6 15:57:56 2009 +0200
wininet: Don't send any data after being redirected.
---
dlls/wininet/http.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index d3918a3..9c75862 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -3271,7 +3271,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
DWORD dwContentLength, BOOL bEndRequest)
{
INT cnt;
- BOOL bSuccess = FALSE;
+ BOOL bSuccess = FALSE, redirected = FALSE;
LPWSTR requestString = NULL;
INT responseLen;
BOOL loop_next;
@@ -3373,7 +3373,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
goto lend;
/* send the request as ASCII, tack on the optional data */
- if( !lpOptional )
+ if (!lpOptional || redirected)
dwOptionalLength = 0;
len = WideCharToMultiByte( CP_ACP, 0, requestString, -1,
NULL, 0, NULL, NULL );
@@ -3467,6 +3467,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
}
HeapFree( GetProcessHeap(), 0, new_url );
}
+ redirected = TRUE;
}
}
if (!(lpwhr->hdr.dwFlags & INTERNET_FLAG_NO_AUTH) && bSuccess)
More information about the wine-cvs
mailing list