Skip to content

Commit

Permalink
Fix broken server response
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel authored Oct 11, 2024
1 parent 8e229f9 commit 126aec4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ var extname = path.extname;
var mime = send.mime;
var resolve = path.resolve;
var vary = require('vary');
var request = require('./request');

/**
* Response prototype.
* @public
*/

var res = Object.create(http.ServerResponse.prototype)
var res = new http.ServerResponse(request)

/**
* Module exports.
Expand Down

0 comments on commit 126aec4

Please sign in to comment.