correct content type for post request
[mono.git] / data / net_1_1 / DefaultWsdlHelpGenerator.aspx
index 038627e858f756c9358bf10ee8992e5f1c4c5d94..923655937f14ddf5f6b04f9feb2fca18fb736a80 100644 (file)
@@ -353,6 +353,7 @@ string GetTestResult ()
                        req = WebRequest.Create (url);
                        req.Method = "POST";
                        if (qs != null && qs.Length > 0) {
+                               req.ContentType = "application/x-www-form-urlencoded";
                                byte [] postBuffer = Encoding.UTF8.GetBytes (qs);
                                req.ContentLength = postBuffer.Length;
                                using (Stream requestStream = req.GetRequestStream ())