too odd code
This commit is contained in:
parent
7a579b1127
commit
9701e82828
1 changed files with 4 additions and 1 deletions
|
|
@ -37,7 +37,10 @@ namespace Yavsc.Controllers
|
||||||
|
|
||||||
public async Task<IActionResult> Index(string id)
|
public async Task<IActionResult> Index(string id)
|
||||||
{
|
{
|
||||||
ViewBag.IsFromSecureProx = (Request.Headers.ContainsKey(Constants.SshHeaderKey))? Request.Headers[Constants.SshHeaderKey]=="on" : false ;
|
/*
|
||||||
|
|
||||||
|
|
||||||
|
*/ ViewBag.IsFromSecureProx = (Request.Headers.ContainsKey(Constants.SshHeaderKey))? Request.Headers[Constants.SshHeaderKey]=="on" : false ;
|
||||||
ViewBag.SecureHomeUrl = "https://"+Request.Headers["X-Forwarded-Host"];
|
ViewBag.SecureHomeUrl = "https://"+Request.Headers["X-Forwarded-Host"];
|
||||||
ViewBag.SshHeaderKey = Request.Headers[Constants.SshHeaderKey];
|
ViewBag.SshHeaderKey = Request.Headers[Constants.SshHeaderKey];
|
||||||
var uid = User.GetUserId();
|
var uid = User.GetUserId();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue