projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch to pleroma/http_signatures library
[akkoma]
/
test
/
plugs
/
http_security_plug_test.exs
diff --git
a/test/plugs/http_security_plug_test.exs
b/test/plugs/http_security_plug_test.exs
index 55040a108b05835d1b8710fcafb441774ad9d095..0cbb7e4b11fcfd6f57bb752ad583c840ad7c91a0 100644
(file)
--- a/
test/plugs/http_security_plug_test.exs
+++ b/
test/plugs/http_security_plug_test.exs
@@
-1,3
+1,7
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Web.Plugs.HTTPSecurityPlugTest do
use Pleroma.Web.ConnCase
alias Pleroma.Config
defmodule Pleroma.Web.Plugs.HTTPSecurityPlugTest do
use Pleroma.Web.ConnCase
alias Pleroma.Config
@@
-60,6
+64,8
@@
defmodule Pleroma.Web.Plugs.HTTPSecurityPlugTest do
end
test "referrer-policy header reflects configured value", %{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")
conn =
conn
|> get("/api/v1/instance")