Skip to content

Commit 98e69a8

Browse files
authored
fix: Release (#243)
1 parent f1d1463 commit 98e69a8

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ jobs:
8989
/p:Version=${{ env.VERSION_NUMBER }}
9090
/p:PublishReadyToRun=false
9191
/p:PublishSingleFile=true
92-
/p:PublishTrimmed=true
9392
/p:IncludeNativeLibrariesForSelfExtract=true
9493
--output ${{ env.ARTIFACT_PATH }}
9594

src/AzureEventGridSimulator/Infrastructure/Middleware/EventGridMiddleware.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,9 @@ await context.WriteErrorResponse(
7474
return;
7575

7676
case RequestType.NotFound:
77-
var requestUri =
78-
$"{context.Request.Scheme}://{context.Request.Host}{context.Request.Path}";
7977
await context.WriteErrorResponse(
8078
HttpStatusCode.NotFound,
81-
$"No HTTP resource was found that matches the request URI '{Uri.EscapeDataString(requestUri)}'.{context.GenerateReportSuffix()}",
79+
$"No HTTP resource was found that matches the request URI '{Uri.EscapeDataString($"{context.Request.Scheme}://{context.Request.Host}{context.Request.Path}")}'.{context.GenerateReportSuffix()}",
8280
null,
8381
ErrorDetailCodes.ResourceNotFound
8482
);

0 commit comments

Comments
 (0)