neuecc / AsyncOAuth

Portable Client Library and HttpClient based OAuth library, including all platform(for PCL).
101 stars 39 forks source link

GetRequestToken swallow exceptions #19

Open marcelodeaguiar opened 9 years ago

marcelodeaguiar commented 9 years ago

Method OAuthAuthorizer.GetRequestToken() swallows the original exception by throwing a new HttpRequestException. Should use HttpResponseMessage.EnsureSuccessStatusCode instead to throw the correct WebException or catch it to the send as the inner exception.