scottoffen / grapevine-legacy

Embedding A REST Server In Your Application Should Be Simple
http://scottoffen.github.io/grapevine-legacy/
Apache License 2.0
209 stars 50 forks source link

Fixes #219 WebExceptionHandler not firing on ConnectionFailure #220

Closed scottoffen closed 3 years ago

scottoffen commented 3 years ago

WebException can be thrown when calling RestRequest.ToHttpWebRequest(), because (rather obviously) that method is where it tries to write to the request output stream - which might not be available.

As a band-aid, I moved the try/catch block to include that call.