From 62944b47fb15d66aed5d3a6250eb3334c2835ea7 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sat, 17 Nov 2018 00:45:21 +0900
Subject: [PATCH] Reset http security settings to fix plug test
---
test/plugs/http_security_plug_test.exs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/plugs/http_security_plug_test.exs b/test/plugs/http_security_plug_test.exs
index 55040a108..169c3b3a8 100644
--- a/test/plugs/http_security_plug_test.exs
+++ b/test/plugs/http_security_plug_test.exs
@@ -60,6 +60,8 @@ test "it does not send STS headers when disabled", %{conn: conn} do
end
test "referrer-policy header reflects configured value", %{conn: conn} do
+ Config.put([:http_security, :enabled], true)
+
conn =
conn
|> get("/api/v1/instance")