Skip to content

Commit

Permalink
Update request.js
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Oct 1, 2024
1 parent 0882970 commit 22fe59f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

var accepts = require('accepts');
var isIP = require('net').isIP;
var typeis = require('type-is');
var http = require('http');
var fresh = require('fresh');
var parseRange = require('range-parser');
Expand Down Expand Up @@ -254,20 +253,6 @@ defineGetter(req, 'query', function query(){
* @public
*/

req.is = function is(types) {
var arr = types;

// support flattened arguments
if (!Array.isArray(types)) {
arr = new Array(arguments.length);
for (var i = 0; i < arr.length; i++) {
arr[i] = arguments[i];
}
}

return typeis(this, arr);
};

/**
* Return the protocol string "http" or "https"
* when requested with TLS. When the "trust proxy"
Expand Down

0 comments on commit 22fe59f

Please sign in to comment.