tlrobinson / narwhal

[DEPRECATED] A JavaScript standard library, package manager, and more.
http://narwhaljs.org/
372 stars 16 forks source link

http-client connect for Rhino doesn't include response body if server returns status 500 #100

Open tschaub opened 14 years ago

tschaub commented 14 years ago

The getInputStream method on URLConnection throws an exception if the server returned status 500. In these cases, getErrorStream contains the appropriate body. See http://github.com/tschaub/narwhal/commit/100c0ff2da88e55ed8c0f469d49e0f0a8eb19da5