HTTPSecurityPlug module name and filename
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Wed, 24 Jun 2020 07:39:17 +0000 (10:39 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 13 Oct 2020 13:43:55 +0000 (16:43 +0300)
lib/pleroma/application.ex
lib/pleroma/web/endpoint.ex
lib/pleroma/web/plugs/http_security_plug.ex
lib/pleroma/web/plugs/http_signature_plug.ex [moved from lib/pleroma/web/plugs/http_signature.ex with 100% similarity]

index 0f39c7d92cc11066c3eef67fecf58a3fb271e152..958e32db248075c33db6211e6aa4f9651b543f92 100644 (file)
@@ -52,7 +52,7 @@ defmodule Pleroma.Application do
     Pleroma.HTML.compile_scrubbers()
     Pleroma.Config.Oban.warn()
     Config.DeprecationWarnings.warn()
-    Pleroma.Plugs.HTTPSecurityPlug.warn_if_disabled()
+    Pleroma.Web.Plugs.HTTPSecurityPlug.warn_if_disabled()
     Pleroma.ApplicationRequirements.verify!()
     setup_instrumenters()
     load_custom_modules()
index db39715588a609245d4889c23313cd585bbdf924..6acca0db679de091362baaa2ec0dfd6f3a071ebf 100644 (file)
@@ -11,7 +11,7 @@ defmodule Pleroma.Web.Endpoint do
 
   plug(Pleroma.Web.Plugs.SetLocalePlug)
   plug(CORSPlug)
-  plug(Pleroma.Plugs.HTTPSecurityPlug)
+  plug(Pleroma.Web.Plugs.HTTPSecurityPlug)
   plug(Pleroma.Web.Plugs.UploadedMedia)
 
   @static_cache_control "public, no-cache"
index c363b193b8573fc290000c4b4ebc47882506bf3d..45aaf188e6b3039d12f2573c8d81ed721de364dc 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
 # SPDX-License-Identifier: AGPL-3.0-only
 
-defmodule Pleroma.Plugs.HTTPSecurityPlug do
+defmodule Pleroma.Web.Plugs.HTTPSecurityPlug do
   alias Pleroma.Config
   import Plug.Conn