From afd368577986ea5c756164622b13f73b138fcc1e Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Fri, 27 Jan 2012 10:53:00 +0100 Subject: [PATCH] winhttp: Only turn POST requests into GET requests when redirecting. --- dlls/winhttp/request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c index fac6face304..f615f41646f 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 );