mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Remove unused Cookies
This commit is contained in:
		
							parent
							
								
									9c02e99e35
								
							
						
					
					
						commit
						5510e8ebee
					
				@ -412,25 +412,6 @@ namespace Emby.Server.Implementations.SocketSharp
 | 
				
			|||||||
            return path.Length > 1 ? path.TrimEnd('/') : "/";
 | 
					            return path.Length > 1 ? path.TrimEnd('/') : "/";
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        private Dictionary<string, System.Net.Cookie> cookies;
 | 
					 | 
				
			||||||
        public IDictionary<string, System.Net.Cookie> Cookies
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            get
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                if (cookies == null)
 | 
					 | 
				
			||||||
                {
 | 
					 | 
				
			||||||
                    cookies = new Dictionary<string, System.Net.Cookie>();
 | 
					 | 
				
			||||||
                    foreach (var cookie in this.request.Cookies)
 | 
					 | 
				
			||||||
                    {
 | 
					 | 
				
			||||||
                        var httpCookie = cookie;
 | 
					 | 
				
			||||||
                        cookies[httpCookie.Key] = new Cookie(httpCookie.Key, httpCookie.Value, "", "");
 | 
					 | 
				
			||||||
                    }
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                return cookies;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        public string UserAgent => request.Headers[HeaderNames.UserAgent];
 | 
					        public string UserAgent => request.Headers[HeaderNames.UserAgent];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public QueryParamCollection Headers => new QueryParamCollection(request.Headers);
 | 
					        public QueryParamCollection Headers => new QueryParamCollection(request.Headers);
 | 
				
			||||||
 | 
				
			|||||||
@ -41,8 +41,6 @@ namespace MediaBrowser.Model.Services
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        string UserAgent { get; }
 | 
					        string UserAgent { get; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        IDictionary<string, Cookie> Cookies { get; }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
        /// The expected Response ContentType for this request
 | 
					        /// The expected Response ContentType for this request
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user