The host could give an useful response with information about the error.
This commit is contained in:
committed by
Joshua Granick
parent
70794d6f3e
commit
69e758a9a2
@@ -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)});
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user