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] Fixed handling of query parameters #939

Merged
merged 1 commit into from Mar 25, 2014
Jump to file or symbol
Failed to load files and symbols.
+1 −3
Diff settings

Always

Just for now

Fixed handling of query parameters in ZF2 module

  • Loading branch information...
piccagliani committed Mar 25, 2014
commit fed074c2b2b06728a59b57cf4b8bb0bb73ad96a1
@@ -45,14 +45,12 @@ public function doRequest($request)
if ($queryString) {
parse_str($queryString, $query);
$zendRequest->setQuery(new Parameters($query));
}
if ($method == HttpRequest::METHOD_POST) {
$post = $request->getParameters();
$zendRequest->setPost(new Parameters($post));
} elseif ($method == HttpRequest::METHOD_GET) {
$query = $request->getParameters();
$zendRequest->setQuery(new Parameters($query));
} elseif ($method == HttpRequest::METHOD_PUT) {
$zendRequest->setContent($request->getContent());
}
ProTip! Use n and p to navigate between commits in a pull request.