mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-08 10:35:34 +00:00
Updated some dependencies and package.json
This commit is contained in:
18
server/node_modules/express/lib/router/route.js
generated
vendored
Executable file → Normal file
18
server/node_modules/express/lib/router/route.js
generated
vendored
Executable file → Normal file
@@ -52,10 +52,20 @@ Route.prototype._handles_method = function _handles_method(method) {
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Route.prototype._options = function(){
|
||||
return Object.keys(this.methods).map(function(method) {
|
||||
return method.toUpperCase();
|
||||
});
|
||||
Route.prototype._options = function _options() {
|
||||
var methods = Object.keys(this.methods);
|
||||
|
||||
// append automatic head
|
||||
if (this.methods.get && !this.methods.head) {
|
||||
methods.push('head');
|
||||
}
|
||||
|
||||
for (var i = 0; i < methods.length; i++) {
|
||||
// make upper case
|
||||
methods[i] = methods[i].toUpperCase();
|
||||
}
|
||||
|
||||
return methods;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user