Skip to content

Commit 02125be

Browse files
committed
Engine: Use HttpRequestFeature.Path instead of RawTarget
HttpRequestFeature.RawTarget contains according to the documentation: "This property contains the raw path and full query, as well as other request targets such as * for OPTIONS requests". We only want the Requset Path identifying the requested resource so let's use HttpRequestFeature.Path.
1 parent 209a49a commit 02125be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Spark.Engine/Extensions/HttpRequestFhirExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static int GetPagingOffsetParameter(this HttpRequest request)
6060
internal static string GetRequestUri(this HttpRequest request)
6161
{
6262
var httpRequestFeature = request.HttpContext.Features.Get<IHttpRequestFeature>();
63-
return $"{request.Scheme}://{request.Host}{httpRequestFeature.RawTarget}";
63+
return $"{request.Scheme}://{request.Host}{httpRequestFeature.Path}";
6464
}
6565

6666
internal static DateTimeOffset? IfModifiedSince(this HttpRequest request)

0 commit comments

Comments
 (0)