Skip to content

Commit 65cdb67

Browse files
committed
Fix warnings
1 parent d32f74c commit 65cdb67

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

projects/utils/http-status-codes/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ static List<FieldInfo> GetConstants(Type type)
1212

1313
app.Run(async context =>
1414
{
15-
context.Response.Headers.Add("Content-Type", "text/html");
15+
context.Response.Headers.Append("Content-Type", "text/html");
1616
await context.Response.WriteAsync(@"<html>
1717
<head>
1818
<link rel=""stylesheet"" href=""https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.css"" />

projects/utils/media-type-names-2/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ string GetMime(string ext)
1515

1616
app.Run(async context =>
1717
{
18-
context.Response.Headers.Add(HeaderNames.ContentType, MediaTypeNames.Text.Html);
18+
context.Response.Headers.Append(HeaderNames.ContentType, MediaTypeNames.Text.Html);
1919

2020
await context.Response.WriteAsync("<html><body>");
2121
await context.Response.WriteAsync("<h1>Geting MIME type based on a file extension</h1>");

projects/utils/media-type-names/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ static List<FieldInfo> GetConstants(Type type)
1313

1414
app.Run(async context =>
1515
{
16-
context.Response.Headers.Add(HeaderNames.ContentType, MediaTypeNames.Text.Html);
16+
context.Response.Headers.Append(HeaderNames.ContentType, MediaTypeNames.Text.Html);
1717

1818
await context.Response.WriteAsync("<html><body>");
1919

0 commit comments

Comments
 (0)