Skip to content

Commit 58a346b

Browse files
committed
Fix warnings
1 parent e18ec38 commit 58a346b

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

projects/rewrite/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@
3232

3333
This custom redirection logic allows us to simply specify the image file names without worrying about their exact path e.g.'xx.jpg' and 'yy.png'.
3434

35-
dotnet6
35+
dotnet8

projects/rewrite/rewrite-1/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
app.MapGet("/", (context) =>
1111
{
12-
context.Response.Headers.Add("content-type", "text/html");
12+
context.Response.Headers.Append("content-type", "text/html");
1313
return context.Response.WriteAsync($@"<html><body>
1414
Always display this page when path ends with / e.g. <a href=""/hello-world/"">/hello-world/</a> or
1515
<a href=""/welcome/everybody/inthis/train/"">/welcome/everybody/inthis/train/</a>.</body></html>");

projects/rewrite/rewrite-2/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
app.MapGet("", (context) =>
1010
{
11-
context.Response.Headers.Add("content-type", "text/html");
11+
context.Response.Headers.Append("content-type", "text/html");
1212
var path = context.Request.Query["Path"];
1313
var ext = context.Request.Query["Ext"];
1414
return context.Response.WriteAsync($@"<html><body>Always display this page when path ends with an extension (e.g. .html or .aspx) and capture the their values.

projects/rewrite/rewrite-3/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
app.MapGet("/", (context) =>
1111
{
12-
context.Response.Headers.Add("content-type", "text/html");
12+
context.Response.Headers.Append("content-type", "text/html");
1313
var path = context.Request.Query["Path"];
1414
var ext = context.Request.Query["Ext"];
1515
return context.Response.WriteAsync($@"

projects/rewrite/rewrite-4/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
app.MapGet("", (context) =>
1111
{
12-
context.Response.Headers.Add("content-type", "text/html");
12+
context.Response.Headers.Append("content-type", "text/html");
1313
var path = context.Request.Query["Path"];
1414
var ext = context.Request.Query["Ext"];
1515
return context.Response.WriteAsync($@"<html><body>

projects/rewrite/rewrite-5/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
app.MapGet("", async context =>
1515
{
16-
context.Response.Headers.Add("content-type", "text/html");
16+
context.Response.Headers.Append("content-type", "text/html");
1717

1818
await context.Response.WriteAsync($"<h1>Extension Based Redirection</h1><img src=\"ryan-wong-25025.jpg\" /> <br/> <img src=\"Acorn_PNG744.png\" />");
1919
});

projects/rewrite/rewrite-6/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
app.MapGet("", async context =>
3131
{
32-
context.Response.Headers.Add("content-type", "text/html");
32+
context.Response.Headers.Append("content-type", "text/html");
3333

3434
await context.Response.WriteAsync($"<h1>Extension Based Redirection</h1><img src=\"ryan-wong-25025.jpg\" />");
3535
});

projects/syndications/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414

1515
RSS reader demo using ```Microsoft.ServiceModel.Syndication```.
1616

17-
dotnet6
17+
dotnet8

0 commit comments

Comments
 (0)