webman
webman copied to clipboard
无法获取完整协议的URL
$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'));
}
`