Commit badc64b4 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Don't remove content-type/length headers in handle_redirect().

parent ec46607e
......@@ -2544,7 +2544,6 @@ static DWORD handle_redirect( struct request *request, DWORD status )
struct connect *connect = request->connect;
INTERNET_PORT port;
WCHAR *hostname = NULL, *location = NULL;
int index;
if ((ret = get_redirect_url( request, &location, &len_loc ))) return ret;
......@@ -2643,10 +2642,6 @@ static DWORD handle_redirect( struct request *request, DWORD status )
else request->path = strdupW( L"/" );
}
/* remove content-type/length headers */
if ((index = get_header_index( request, L"Content-Type", 0, TRUE )) >= 0) delete_header( request, index );
if ((index = get_header_index( request, L"Content-Length", 0, TRUE )) >= 0 ) delete_header( request, index );
if (status != HTTP_STATUS_REDIRECT_KEEP_VERB && !wcscmp( request->verb, L"POST" ))
{
free( request->verb );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment