[1/3] winhttp: Only turn POST requests into GET requests when redirecting.
Hans Leidekker
hans at codeweavers.com
Fri Jan 27 03:53:00 CST 2012
Fix for http://bugs.winehq.org/show_bug.cgi?id=29715
---
dlls/winhttp/request.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index fac6fac..f615f41 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -1650,7 +1650,7 @@ static BOOL handle_redirect( request_t *request, DWORD status )
if ((index = get_header_index( request, attr_content_type, 0, TRUE )) >= 0) delete_header( request, index );
if ((index = get_header_index( request, attr_content_length, 0, TRUE )) >= 0 ) delete_header( request, index );
- if (status != HTTP_STATUS_REDIRECT_KEEP_VERB)
+ if (status != HTTP_STATUS_REDIRECT_KEEP_VERB && !strcmpW( request->verb, postW ))
{
heap_free( request->verb );
request->verb = strdupW( getW );
--
1.7.8.3
More information about the wine-patches
mailing list