Fix disabled test

This commit is contained in:
Timothy Baldridge 2020-02-14 15:27:48 -07:00
parent 8d13a4c455
commit f9459c2d85

View File

@ -18,13 +18,10 @@ namespace Wabbajack.Lib.LibCefHelpers
{
public static Common.Http.Client GetClient(IEnumerable<Cookie> cookies, string referer)
{
throw new NotImplementedException("tt");
/*
var container = ToCookieContainer(cookies);
var handler = new HttpClientHandler { CookieContainer = container };
var client = new HttpClient(handler);
client.DefaultRequestHeaders.Referrer = new Uri(referer);
return client;*/
var client = new Common.Http.Client();
client.Headers.Add(("Referrer", referer));
client.Cookies.AddRange(cookies.Select(cookie => new System.Net.Cookie(cookie.Name, cookie.Value, cookie.Path, cookie.Domain)));
return client;
}
private static CookieContainer ToCookieContainer(IEnumerable<Cookie> cookies)