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

无法获取完整协议的URL #349

Open
halo123450 opened this issue Dec 19, 2022 · 0 comments
Open

无法获取完整协议的URL #349

halo123450 opened this issue Dec 19, 2022 · 0 comments

Comments

@halo123450
Copy link

halo123450 commented Dec 19, 2022

$request->url()和$request->fullUrl()均无法获取完整协议头的URL,建议新增方法完善,示例:
`
/**
* @return string
*/
public function protocol()
{
return $this->scheme() . '://';
}

/**
 * @return string
 */
public function scheme()
{
    return strtolower($this->header('x-forwarded-proto', 'http'));
}

`

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