EllisLab/CodeIgniter — comment on commit 5d27c43d29fc049497010ea62ac7877a64bfed92
File: system/core/Security.php line 142
By IT-Can:

why not use:

if ( $this->input->method() !== 'post')