Changed UploadStringAsync to handle UploadString encapsulated exceptions.
authormarcos henrich <marcoshenrich@gmail.com>
Tue, 3 Jun 2014 15:23:22 +0000 (16:23 +0100)
committermarcos henrich <marcoshenrich@gmail.com>
Tue, 3 Jun 2014 15:23:22 +0000 (16:23 +0100)
commite2e64fada523d77272f5db50d6f2c19d0429cac2
tree99b236ed38215602352bf2bca83ba1d86baab2d4
parent0b1ea4edc90eb46b9efa05c22f28ace3ff8c4f73
Changed UploadStringAsync to handle UploadString encapsulated exceptions.
UploadString call UploadData that encapsulates all exceptions in a WebException. ThreadInterruptedException were encapsulated into a WebException, so UploadStringAsync now uses e.InnerException is ThreadInterruptedException instead of trying to catch it.
mcs/class/System/System.Net/WebClient.cs