The host could give an useful response with information about the error.

This commit is contained in:
Pablo Martin
2017-10-18 20:55:48 +02:00
committed by Joshua Granick
parent 70794d6f3e
commit 69e758a9a2

View File

@@ -306,7 +306,7 @@ class NativeHTTPRequest {
} else {
threadPool.sendError ({ instance: this, promise: promise, error: "Status " + parent.responseStatus });
threadPool.sendError ({ instance: this, promise: promise, error: bytes == null ? 'Status ${parent.responseStatus}' : Std.string(bytes)});
}