From 30d200dc09e6b0e8268f0a8da811e131b4288385 Mon Sep 17 00:00:00 2001 From: pana Date: Fri, 17 Jan 2014 18:19:51 +0800 Subject: [PATCH] remove the vary method from request object --- docs/api/request.md | 4 ---- lib/request.js | 11 ----------- 2 files changed, 15 deletions(-) diff --git a/docs/api/request.md b/docs/api/request.md index 0886354..8fdaa2f 100644 --- a/docs/api/request.md +++ b/docs/api/request.md @@ -315,10 +315,6 @@ this.acceptsLanguages(); Return the request socket. -### req.vary(field) - - Vary on `field`. - ### req.get(field) Return request header. diff --git a/lib/request.js b/lib/request.js index 4625113..eda4675 100644 --- a/lib/request.js +++ b/lib/request.js @@ -459,17 +459,6 @@ module.exports = { return this.accept.languages.apply(this.accept, arguments); }, - /** - * Vary on `field`. - * - * @param {String} field - * @api public - */ - - vary: function(field){ - this.append('Vary', field); - }, - /** * Check if the incoming request contains the "Content-Type" * header field, and it contains any of the give mime `type`s.