mirror of
https://github.com/AlexMacocian/MTSC.git
synced 2026-07-24 12:06:38 +00:00
Fix bug when setting set-cookie headers.
This commit is contained in:
@@ -70,8 +70,8 @@ namespace MTSC.Common.Http
|
||||
{
|
||||
responseString.Append(header.Key).Append(':').Append(HttpHeaders.SP).Append(header.Value).Append(HttpHeaders.CRLF);
|
||||
}
|
||||
responseString.Append(HttpHeaders.CRLF);
|
||||
responseString.Append(cookieString);
|
||||
responseString.Append(HttpHeaders.CRLF);
|
||||
byte[] response = new byte[responseString.Length + (Body == null ? 0 : Body.Length)];
|
||||
byte[] responseBytes = ASCIIEncoding.ASCII.GetBytes(responseString.ToString());
|
||||
Array.Copy(responseBytes, 0, response, 0, responseBytes.Length);
|
||||
|
||||
+3
-3
@@ -5,12 +5,12 @@
|
||||
<TargetFrameworks>netcoreapp2.1;net48;netstandard2.0;netcoreapp3.0</TargetFrameworks>
|
||||
<ApplicationIcon />
|
||||
<StartupObject />
|
||||
<Version>1.2.1</Version>
|
||||
<Version>1.2.3</Version>
|
||||
<Authors>Alexandru-Victor Macocian</Authors>
|
||||
<Product>MTSC</Product>
|
||||
<Description>Modular TCP Server and Client</Description>
|
||||
<AssemblyVersion>0.1.2.1</AssemblyVersion>
|
||||
<FileVersion>0.1.2.1</FileVersion>
|
||||
<AssemblyVersion>0.1.2.3</AssemblyVersion>
|
||||
<FileVersion>0.1.2.3</FileVersion>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<Platforms>AnyCPU;x64</Platforms>
|
||||
<PackageProjectUrl>https://github.com/AlexMacocian/MTSC</PackageProjectUrl>
|
||||
|
||||
Reference in New Issue
Block a user