Browse Source

Fixes issue #99.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
932ed70a72
  1. 2
      framework/web/Request.php

2
framework/web/Request.php

@ -96,7 +96,7 @@ class Request extends \yii\base\Request
*/ */
public function getIsPostRequest() public function getIsPostRequest()
{ {
return isset($_SERVER['REQUEST_METHOD']) && !strcasecmp($_SERVER['REQUEST_METHOD'], 'POST'); return $this->getRequestMethod() === 'POST';
} }
/** /**

Loading…
Cancel
Save