diff options
author | Lluis Sanchez <lluis@novell.com> | 2004-09-01 21:41:35 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2004-09-01 21:41:35 +0400 |
commit | fe58636b54074d393f912df7f7e02719aeb4a5bb (patch) | |
tree | 8eb6f198f689c320016d90ce69a28e5e4c9cbac7 /mcs/class | |
parent | ed1f238a737682385b6b3b14ecd1edab16f4a038 (diff) |
* DiscoveryClientProtocol.cs: Added support for "file://" urls.
svn path=/trunk/mcs/; revision=33167
Diffstat (limited to 'mcs/class')
-rwxr-xr-x | mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog | 4 | ||||
-rwxr-xr-x | mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog b/mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog index 0848038d656..a6078da3288 100755 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog +++ b/mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog @@ -1,3 +1,7 @@ +2004-09-01 Lluis Sanchez Gual <lluis@novell.com> + + * DiscoveryClientProtocol.cs: Added support for "file://" urls. + 2004-08-24 Lluis Sanchez Gual <lluis@novell.com> * ContractReference.cs, DiscoveryClientProtocol.cs: Set the url from which diff --git a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs index 21fc58e63cb..c24e50b0b68 100755 --- a/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs +++ b/mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs @@ -203,6 +203,13 @@ namespace System.Web.Services.Discovery { contentType = resp.ContentType;
return resp.GetResponseStream ();
}
+ else if (url.StartsWith ("file://"))
+ {
+ WebRequest request = WebRequest.Create (new Uri (url));
+ WebResponse resp = request.GetResponse ();
+ contentType = resp.ContentType;
+ return resp.GetResponseStream ();
+ }
else
{
string ext = Path.GetExtension (url).ToLower();
|