reduce httppipeline depth

This commit is contained in:
UbitUmarov
2020-04-06 16:53:28 +01:00
parent 3989dbac31
commit 29f59fe407
4 changed files with 32 additions and 24 deletions

View File

@@ -79,8 +79,11 @@ namespace OpenSim.Framework.Servers.HttpServer
{
RequestCookies cookies = _request.Cookies;
HttpCookieCollection httpCookies = new HttpCookieCollection();
foreach (RequestCookie cookie in cookies)
httpCookies.Add(new HttpCookie(cookie.Name, cookie.Value));
if(cookies != null)
{
foreach (RequestCookie cookie in cookies)
httpCookies.Add(new HttpCookie(cookie.Name, cookie.Value));
}
return httpCookies;
}
}