webman icon indicating copy to clipboard operation
webman copied to clipboard

无法获取完整协议的URL

Open halo123450 opened this issue 2 years ago • 0 comments

$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'));
}

`

halo123450 avatar Dec 19 '22 08:12 halo123450