File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
src/net45/Extensions/WampSharp.AspNet.WebSockets.Server Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 1
- using System . Collections . Generic ;
2
- using System . Net ;
1
+ using System . Net ;
3
2
using System . Web ;
4
3
using WampSharp . V2 . Authentication ;
5
4
@@ -16,13 +15,9 @@ private static CookieCollection GetCookieCollection(HttpContext httpContext)
16
15
{
17
16
CookieCollection result = new CookieCollection ( ) ;
18
17
19
- foreach ( var cookie in httpContext . Request . Cookies )
18
+ foreach ( HttpCookie cookie in httpContext . Request . Cookies )
20
19
{
21
- if ( cookie is KeyValuePair < string , string > )
22
- {
23
- var castedCookie = ( KeyValuePair < string , string > ) cookie ;
24
- result . Add ( new Cookie ( castedCookie . Key , castedCookie . Value ) ) ;
25
- }
20
+ result . Add ( new Cookie ( cookie . Name , cookie . Value ) ) ;
26
21
}
27
22
28
23
return result ;
You can’t perform that action at this time.
0 commit comments