if (Uri.MaybeUri (raw_url) && Uri.TryCreate (raw_url, UriKind.Absolute, out raw_uri))
path = raw_uri.PathAndQuery;
else
- path = HttpUtility.UrlDecode (raw_url);
+ path = raw_url;
if ((host == null || host.Length == 0))
host = UserHostAddress;
// TODO: test if MS has a timeout when doing this
try {
IAsyncResult ares = InputStream.BeginRead (bytes, 0, length, null, null);
- if (!ares.IsCompleted && !ares.AsyncWaitHandle.WaitOne (100))
+ if (!ares.IsCompleted && !ares.AsyncWaitHandle.WaitOne (1000))
return false;
if (InputStream.EndRead (ares) <= 0)
return true;