Skip to content

Commit 995bc2d

Browse files
dermotblaircaRehanSaeed
authored andcommitted
Use UriKind.RelativeOrAbsolute to allow deserializing of relative URIs
1 parent 2c3af5e commit 995bc2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Common/ValuesJsonConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ private static bool TryProcessTokenAsType(ref Utf8JsonReader reader, Type target
379379
}
380380
else if (targetType == typeof(Uri))
381381
{
382-
success = Uri.TryCreate(valueString, UriKind.Absolute, out var localResult);
382+
success = Uri.TryCreate(valueString, UriKind.RelativeOrAbsolute, out var localResult);
383383
result = localResult;
384384
}
385385
else if (targetType == typeof(Guid))

0 commit comments

Comments
 (0)