cakephp / codeception

CakePHP module for Codeception
Other
46 stars 28 forks source link

Can't set http headers #26

Closed nojimage closed 8 years ago

nojimage commented 9 years ago

I use REST module. (PhpBrower module same too.

$I->haveHttpHeader('Origin', 'http://foo.example');
$I->sendOPTIONS('/api/foo');

But, Can't get 'Origin' header in cakephp application.

nojimage commented 9 years ago

The request routing not correct, when using RESTful routing.

eg.

$I->sendPUT('/foo/1', [ ... ])

I expect route to ['controller' => 'foo', 'action' => 'edit', 1]. but, accutualy ['controller' => 'foo', 'action' => 1].

fixes it b104bf2