Skip to content

Commit 253e1ad

Browse files
authored
Merge pull request #119 from slamdata/statustext
Add statusText to response
2 parents db7ece2 + b67839a commit 253e1ad

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Network/HTTP/Affjax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ exports._ajax = function () {
5959
xhr.onload = function () {
6060
callback({
6161
status: xhr.status,
62+
statusText: xhr.statusText,
6263
headers: xhr.getAllResponseHeaders().split("\r\n")
6364
.filter(function (header) {
6465
return header.length > 0;
@@ -85,4 +86,3 @@ exports._ajax = function () {
8586
};
8687
};
8788
}();
88-

src/Network/HTTP/Affjax.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ defaultRequest =
7575
-- | The type of records that will be received as an Affjax response.
7676
type AffjaxResponse a =
7777
{ status :: StatusCode
78+
, statusText :: String
7879
, headers :: Array ResponseHeader
7980
, response :: a
8081
}

0 commit comments

Comments
 (0)