We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 844a6e7 commit ad5290eCopy full SHA for ad5290e
1 file changed
src/Apitally/RequestLogger.cs
@@ -149,9 +149,10 @@ public void LogRequest(
149
150
try
151
{
152
- var path = !string.IsNullOrEmpty(request.Path)
153
- ? request.Path
154
- : new Uri(request.Url).AbsolutePath;
+ var path =
+ !string.IsNullOrEmpty(request.Path) ? request.Path
+ : !string.IsNullOrEmpty(request.Url) ? new Uri(request.Url).AbsolutePath
155
+ : string.Empty;
156
var userAgent = GetHeaderValue(request.Headers, "user-agent");
157
if (
158
ShouldExcludePath(path)
0 commit comments