Skip to content

Commit

Permalink
Fix: add statusCode property for res object
Browse files Browse the repository at this point in the history
  • Loading branch information
welefen committed Mar 3, 2016
1 parent d36f1be commit c1e45fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/think.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ think._http = (data = {}) => {
};
let empty = () => {};
let res = {
statusCode: 200,
setTimeout: empty,
end: data.end || data.close || empty,
write: data.write || data.send || empty,
Expand Down

0 comments on commit c1e45fa

Please sign in to comment.