Skip to content

Commit a8b67a2

Browse files
authored
Rename variable (#9461)
1 parent 32c46c7 commit a8b67a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageMiddleware.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class DeveloperExceptionPageMiddleware
3434
private readonly DiagnosticSource _diagnosticSource;
3535
private readonly ExceptionDetailsProvider _exceptionDetailsProvider;
3636
private readonly Func<ErrorContext, Task> _exceptionHandler;
37-
private static readonly MediaTypeHeaderValue _textPlainMediaType = new MediaTypeHeaderValue("text/html");
37+
private static readonly MediaTypeHeaderValue _textHtmlMediaType = new MediaTypeHeaderValue("text/html");
3838

3939
/// <summary>
4040
/// Initializes a new instance of the <see cref="DeveloperExceptionPageMiddleware"/> class
@@ -135,7 +135,7 @@ private Task DisplayException(ErrorContext errorContext)
135135
var acceptHeader = headers.Accept;
136136

137137
// If the client does not ask for HTML just format the exception as plain text
138-
if (acceptHeader == null || !acceptHeader.Any(h => h.IsSubsetOf(_textPlainMediaType)))
138+
if (acceptHeader == null || !acceptHeader.Any(h => h.IsSubsetOf(_textHtmlMediaType)))
139139
{
140140
httpContext.Response.ContentType = "text/plain";
141141

0 commit comments

Comments
 (0)