Skip to content

Commit a088871

Browse files
committed
Quotes are updated to the end of the profile.
1 parent 3eb59e0 commit a088871

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MakingSense.AspNetCore.HypermediaApi/ExceptionHandling/ApiErrorHandlerMiddleware.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ private static void WriteResponseHeaders(Problem problem, HttpRequest request, H
185185
private static void AddQuotedProfileToContentType(HttpResponse response, bool keepUnquoted = false)
186186
{
187187
var profile = keepUnquoted ? SchemaAttribute.Path
188-
: $"\"{SchemaAttribute.Path?.Replace("\"", "\\\"")}\"";
189-
response.ContentType += $"; profile={profile}problem.json";
188+
: $"\"{SchemaAttribute.Path?.Replace("\"", "\\\"")}";
189+
response.ContentType += $"; profile={profile}problem.json\"";
190190
}
191191
}
192192
}

0 commit comments

Comments
 (0)