Some QOL improvements

This commit is contained in:
Wessel Damian Tip
2019-01-16 15:28:02 +01:00
parent ac9e338ffa
commit c3248bf0ef
4 changed files with 71 additions and 49 deletions

View File

@@ -1,7 +1,7 @@
module.exports = class WumpResponse {
constructor ( res ) {
this.body = Buffer.alloc( 0 );
this.coreRes = res
this.coreRes = res;
this.headers = res.headers;
this.statusCode = res.statusCode;
@@ -11,4 +11,4 @@ module.exports = class WumpResponse {
text () { return this.body.toString(); }
json () { return JSON.parse( this.body ); }
}
};