From 4cb9ef31869fbfd70b4e406e44da23f5f04ed1d1 Mon Sep 17 00:00:00 2001 From: Gonzalo Paniagua Javier Date: Mon, 27 Feb 2012 10:53:41 -0500 Subject: [PATCH] DELETE can have a request stream Fixes bug #3276. --- mcs/class/System/System.Net/WebConnectionStream.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcs/class/System/System.Net/WebConnectionStream.cs b/mcs/class/System/System.Net/WebConnectionStream.cs index 132ceacbbce..a1876e63f57 100644 --- a/mcs/class/System/System.Net/WebConnectionStream.cs +++ b/mcs/class/System/System.Net/WebConnectionStream.cs @@ -643,7 +643,7 @@ namespace System.Net long cl = request.ContentLength; string method = request.Method; bool no_writestream = (method == "GET" || method == "CONNECT" || method == "HEAD" || - method == "TRACE" || method == "DELETE"); + method == "TRACE"); if (sendChunked || cl > -1 || no_writestream) { WriteHeaders (); if (!initRead) { @@ -703,7 +703,7 @@ namespace System.Net if (!headersSent) { string method = request.Method; bool no_writestream = (method == "GET" || method == "CONNECT" || method == "HEAD" || - method == "TRACE" || method == "DELETE"); + method == "TRACE"); if (!no_writestream) request.InternalContentLength = length; request.SendRequestHeaders (true); -- 2.25.1