mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix disabled test
This commit is contained in:
parent
8d13a4c455
commit
f9459c2d85
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user