Browse Source

add checks for HEAD request

tags/2.0.0-beta
Benjamin Wöster 11 years ago
parent
commit
64d57b397a
  1. 9
      framework/yii/web/Request.php

9
framework/yii/web/Request.php

@ -155,6 +155,15 @@ class Request extends \yii\base\Request
}
/**
* Returns whether this is a HEAD request.
* @return boolean whether this is a HEAD request.
*/
public function getIsHead()
{
return $this->getMethod() === 'HEAD';
}
/**
* Returns whether this is a POST request.
* @return boolean whether this is a POST request.
*/

Loading…
Cancel
Save