Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZF2 module does not send POST parameters since 2.1.3 #2814

Closed
Naktibalda opened this issue Feb 19, 2016 · 0 comments
Closed

ZF2 module does not send POST parameters since 2.1.3 #2814

Naktibalda opened this issue Feb 19, 2016 · 0 comments
Assignees
Labels
ZF2

Comments

@Naktibalda
Copy link
Member

@Naktibalda Naktibalda commented Feb 19, 2016

POST parameters are only being passed as url encoded string in the request body.

It was caused by #2361

InnerBrowser.php

protected function clientRequest($method, $uri, array $parameters = array(), array $files = array(), array $server = array(), $content = null, $changeHistory = true)
    {
        if ($method !== 'GET' && $content === null && !empty($parameters) && $this instanceof Framework) {
            $content = http_build_query($parameters);
        }

Lib/Connector/ZF2.php

        if ($content === null && $method != HttpRequest::METHOD_GET) {
            $post = $request->getParameters();
        }

I think that the way to fix it is to remove $content === null from ZF2.php

@Naktibalda Naktibalda added the ZF2 label Feb 19, 2016
@Naktibalda Naktibalda self-assigned this Feb 19, 2016
Naktibalda added a commit to Naktibalda/Codeception that referenced this issue Feb 19, 2016
Naktibalda added a commit to Naktibalda/Codeception that referenced this issue Feb 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.