diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2006-04-28 23:49:25 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2006-04-28 23:49:25 +0400 |
commit | 5e91900f3f9b1d4b022973797fa91784f04c3114 (patch) | |
tree | b506ef689d783ee4f063bf622f8196077bf8ee41 | |
parent | e1ff2e327346bfbfd4b3e7b1894a9286a5c0432d (diff) |
follow redirect for POST/PUT. Backported
svn path=/branches/mono-1-1-7/mcs/; revision=60053
-rw-r--r-- | mcs/class/System/System.Net/HttpWebRequest.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mcs/class/System/System.Net/HttpWebRequest.cs b/mcs/class/System/System.Net/HttpWebRequest.cs index 52585306b19..d02546dd351 100644 --- a/mcs/class/System/System.Net/HttpWebRequest.cs +++ b/mcs/class/System/System.Net/HttpWebRequest.cs @@ -807,8 +807,10 @@ namespace System.Net case HttpStatusCode.MovedPermanently: // 301 case HttpStatusCode.Redirect: // 302 case HttpStatusCode.TemporaryRedirect: // 307 + /* MS follows the redirect for POST too if (method != "GET" && method != "HEAD") // 10.3 return false; + */ uriString = webResponse.Headers ["Location"]; break; |