Improved error handling in UploadManager

main
Inga 🏳‍🌈 14 years ago
parent 68b8ea8a79
commit 66d7f7c4f3
  1. 2
      Builder/IISMainHandler/build.txt
  2. 3
      Common/UploadManager.cs

@ -138,6 +138,9 @@ namespace FLocal.Common {
response = (HttpWebResponse)request.GetResponse();
} catch(WebException e) {
response = (HttpWebResponse)e.Response;
if(response == null) {
throw;
}
}
using(Stream responseStream = response.GetResponseStream()) {
responseStream.WriteTo(output);

Loading…
Cancel
Save