Skip to content

Commit

Permalink
Fix duplicate cookies causing requests to fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaliumhexacyanoferrat committed Jan 22, 2020
1 parent ed665ce commit 868aaa8
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 19 deletions.
6 changes: 3 additions & 3 deletions API/GenHTTP.API/GenHTTP.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

<AssemblyVersion>2.7.2.0</AssemblyVersion>
<FileVersion>2.7.2.0</FileVersion>
<Version>2.7.2</Version>
<AssemblyVersion>2.7.3.0</AssemblyVersion>
<FileVersion>2.7.3.0</FileVersion>
<Version>2.7.3</Version>

<Authors>Andreas Nägeli</Authors>
<Company />
Expand Down
6 changes: 3 additions & 3 deletions Core/GenHTTP.Core/GenHTTP.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

<AssemblyVersion>2.7.2.0</AssemblyVersion>
<FileVersion>2.7.2.0</FileVersion>
<Version>2.7.2</Version>
<AssemblyVersion>2.7.3.0</AssemblyVersion>
<FileVersion>2.7.3.0</FileVersion>
<Version>2.7.3</Version>

<Authors>Andreas Nägeli</Authors>
<Company />
Expand Down
10 changes: 6 additions & 4 deletions Core/GenHTTP.Core/Protocol/CookieCollection.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using System;
using GenHTTP.Api.Protocol;
using System;
using System.Collections.Generic;

using GenHTTP.Api.Protocol;

namespace GenHTTP.Core.Protocol
{

Expand All @@ -19,7 +18,10 @@ internal void Add(string header)
{
foreach (var cookie in Parse(header))
{
Add(cookie.Name, cookie);
if (!ContainsKey(cookie.Name))
{
Add(cookie.Name, cookie);
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions Modules/GenHTTP.Modules.Core/GenHTTP.Modules.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

<AssemblyVersion>2.7.2.0</AssemblyVersion>
<FileVersion>2.7.2.0</FileVersion>
<Version>2.7.2</Version>
<AssemblyVersion>2.7.3.0</AssemblyVersion>
<FileVersion>2.7.3.0</FileVersion>
<Version>2.7.3</Version>

<Authors>Andreas Nägeli</Authors>
<Company />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

<AssemblyVersion>2.7.2.0</AssemblyVersion>
<FileVersion>2.7.2.0</FileVersion>
<Version>2.7.2</Version>
<AssemblyVersion>2.7.3.0</AssemblyVersion>
<FileVersion>2.7.3.0</FileVersion>
<Version>2.7.3</Version>

<Authors>Andreas Nägeli</Authors>
<Company />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

<AssemblyVersion>2.7.2.0</AssemblyVersion>
<FileVersion>2.7.2.0</FileVersion>
<Version>2.7.2</Version>
<AssemblyVersion>2.7.3.0</AssemblyVersion>
<FileVersion>2.7.3.0</FileVersion>
<Version>2.7.3</Version>

<Authors>Andreas Nägeli</Authors>
<Company />
Expand Down

0 comments on commit 868aaa8

Please sign in to comment.