You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case you need to set two cookies in the same response, the server fails:
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at OpenRasta.Web.HttpHeaderDictionary.Add(String key, String value)
The header collection should not be a simple <string,string> dictionary.
The text was updated successfully, but these errors were encountered:
The implementation choices depended mostly on normalisation of headers coming in and out, and unfortunately Set-Cookie one the only of the cases where this has been an issue, as hosts don't necessarily implement the split correctly to give browsers the non-http compliant they expect for cookies.
The master branch should already have the fix for this .Add exception.
I'll keep this open as we've reworked this, and we should add tests specifically for the cookie handling at the hosting layer.
In case you need to set two cookies in the same response, the server fails:
The header collection should not be a simple <string,string> dictionary.
The text was updated successfully, but these errors were encountered: