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

http proxy get 参数未传递 #3

Open
fred001 opened this issue Feb 14, 2018 · 0 comments
Open

http proxy get 参数未传递 #3

fred001 opened this issue Feb 14, 2018 · 0 comments

Comments

@fred001
Copy link

fred001 commented Feb 14, 2018

http-proxy.php 61行

    $client->get($req->server['request_uri'], function ($cli) use ($req, $resp)

这里是否是没有传递get请求的query string 呢?
以下是我的改写,不知道是否正确。
if(empty($req->server['query_string']))
{
$url=$req->server['request_uri'];
}
else
{
$url=$req->server['request_uri']."?".$req->server['query_string'];
}

$client->get($url, function ($cli) use ($req, $resp)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant