Skip to content

Commit 9972a2b

Browse files
committed
Remove warnings from web-socket samples
1 parent 1a598be commit 9972a2b

File tree

7 files changed

+6
-9
lines changed

7 files changed

+6
-9
lines changed

projects/web-sockets/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Web Sockets (5)
1+
# Web Sockets (6)
22

33
**Warning**: These samples are low level websocket code. For production, use [SignalR](https://github.com/aspnet/signalr). Yes I will work on SignalR samples soon.
44

projects/web-sockets/web-sockets-1/Program.cs

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

3939
app.Run(async context =>
4040
{
41-
context.Response.Headers.Add("content-type", "text/html");
41+
context.Response.Headers.Append("content-type", "text/html");
4242
await context.Response.WriteAsync(@"
4343
<html>
4444
<head>

projects/web-sockets/web-sockets-2/Program.cs

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

7070
app.Run(async context =>
7171
{
72-
context.Response.Headers.Add("content-type", "text/html");
72+
context.Response.Headers.Append("content-type", "text/html");
7373
await context.Response.WriteAsync(@"
7474
<html>
7575
<head>

projects/web-sockets/web-sockets-3/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ await ReceiveAsync(log, socket, socketId, async (clientRequest) =>
8585

8686
app.Run(async context =>
8787
{
88-
context.Response.Headers.Add("content-type", "text/html");
88+
context.Response.Headers.Append("content-type", "text/html");
8989
await context.Response.WriteAsync(@"
9090
<html>
9191
<head>

projects/web-sockets/web-sockets-4/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ await ReceiveAsync(cm, log, socket, socketId, async (connectionManager, clientRe
5151

5252
app.Run(async context =>
5353
{
54-
context.Response.Headers.Add("content-type", "text/html");
54+
context.Response.Headers.Append("content-type", "text/html");
5555
await context.Response.WriteAsync(@"
5656
<html>
5757
<head>
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
2-
32
<PropertyGroup>
43
<TargetFramework>net8.0</TargetFramework>
54
<ImplicitUsings>enable</ImplicitUsings>
6-
<RootNamespace>web_sockets_6</RootNamespace>
75
</PropertyGroup>
8-
96
</Project>

projects/web-utilities/README.md

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

1515
This utility returns HTTP response phrases given a status code number.
1616

17-
dotnet6
17+
dotnet8

0 commit comments

Comments
 (0)