From 248e84e9281f464b438ef36b9c36de467dfb13a8 Mon Sep 17 00:00:00 2001 From: Bob Date: Thu, 3 Mar 2016 17:16:07 +0000 Subject: [PATCH] create cookie as HTTP instead of NonHttp in test Cleanup for readability and correctness of unit test in http_loader --- tests/unit/net/http_loader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/net/http_loader.rs b/tests/unit/net/http_loader.rs index c144e4bd3a8a..3f0aa1348627 100644 --- a/tests/unit/net/http_loader.rs +++ b/tests/unit/net/http_loader.rs @@ -838,7 +838,7 @@ fn test_load_sends_secure_cookie_if_http_changed_to_https_due_to_entry_in_hsts_s let cookie = Cookie::new_wrapped( cookie_pair, &cookie_url, - CookieSource::NonHTTP + CookieSource::HTTP ).unwrap(); cookie_jar.push(cookie, CookieSource::HTTP); }