reqwest
reqwest copied to clipboard
The error() function should be given sensible arguments
Right now, the error() function just gets the XMLHttpRequest object (contrary to what the docs suggest).
It would be great if the first argument would be an error object containing the content and the parsed content if available (if the content-type was JSON it should already be parsed JSON).
+1 to this, the error() function isn't properly implemented. The specified data type should be used to correctly parse the body of 4** responses at least.
I just bumped into this problem.
+1