Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit 21fb958

Browse files
committed
Merge branch 'dev' of https://github.com/Azure/EasyAuthForK8s into dev
2 parents 43f5b23 + 3f0c61a commit 21fb958

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

sample/EasyAuthForK8s.Sample/Pages/Index.cshtml.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ public IndexModel(ILogger<IndexModel> logger)
1414
}
1515
public void OnGet(string? encoding, string? format, string? prefix)
1616
{
17+
try
18+
{
1719
if (!string.IsNullOrEmpty(encoding))
1820
Encoding = encoding!;
1921
if (!string.IsNullOrEmpty(format))
@@ -38,6 +40,11 @@ public void OnGet(string? encoding, string? format, string? prefix)
3840
}
3941

4042
Headers.AddRange(headers.ToList());
43+
}
44+
catch (Exception ex)
45+
{
46+
// Do nothing, just don't throw an exception.
47+
}
4148
}
4249
public List<KeyValuePair<string, string>> Headers = new();
4350
public string Encoding = "UrlEncode";

src/EasyAuthForK8s.Web/Models/AppManifest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public struct AppManifestResult
120120
public bool Succeeded { get; set; } = false;
121121
public Exception? Exception { get; set; } = null;
122122
public AppManifest? AppManifest { get; set; } = null;
123+
public AppManifestResult() { }
123124
}
124125

125126

0 commit comments

Comments
 (0)