From 20f9a144d28cb64b5030f9f52f2f2cdd95f29a47 Mon Sep 17 00:00:00 2001 From: Joro Date: Sun, 4 Oct 2020 12:33:32 +0300 Subject: [PATCH 1/3] Position in HttpServer always must be 0 or throw Exception --- 2020-Sept-Season/SUS/SUS.HTTP/HttpServer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/2020-Sept-Season/SUS/SUS.HTTP/HttpServer.cs b/2020-Sept-Season/SUS/SUS.HTTP/HttpServer.cs index 64e4049e..fca099a6 100644 --- a/2020-Sept-Season/SUS/SUS.HTTP/HttpServer.cs +++ b/2020-Sept-Season/SUS/SUS.HTTP/HttpServer.cs @@ -52,7 +52,8 @@ private async Task ProcessClientAsync(TcpClient tcpClient) { int count = await stream.ReadAsync(buffer, position, buffer.Length); - position += count; + //Position always must be 0 + //position += count; if (count < buffer.Length) { From 213f8308ab8e0cbd155b1b47a82738dfebb6044f Mon Sep 17 00:00:00 2001 From: Joro Date: Sun, 4 Oct 2020 12:49:41 +0300 Subject: [PATCH 2/3] Some changes Signed-off-by: Joro --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7dea1540..ab3279a5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # csharp-web -This is the official GitHub repository for the C# Web Development courses +This is the official GitHub repository for the C# Web Development courses! From 3a192ab4c78561f362831fef6fde0926f6535a1e Mon Sep 17 00:00:00 2001 From: JoroPaspalev <50412345+JoroPaspalev@users.noreply.github.com> Date: Mon, 5 Oct 2020 17:13:55 +0300 Subject: [PATCH 3/3] Create test.txt --- newFolder/test.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 newFolder/test.txt diff --git a/newFolder/test.txt b/newFolder/test.txt new file mode 100644 index 00000000..e036f9bc --- /dev/null +++ b/newFolder/test.txt @@ -0,0 +1 @@ +teststst