IO list, not concatenation
authorMark Felder <feld@FreeBSD.org>
Mon, 6 Jul 2020 16:28:08 +0000 (11:28 -0500)
committerMark Felder <feld@FreeBSD.org>
Mon, 6 Jul 2020 16:28:08 +0000 (11:28 -0500)
lib/pleroma/plugs/http_security_plug.ex

index 13423ca3f3abe396a0c1d9dc4b0df83391e80d4b..472a3ff42e4869d1b8f2e6e347f2cc65cda4b89c 100644 (file)
@@ -145,7 +145,7 @@ defmodule Pleroma.Plugs.HTTPSecurityPlug do
     %{host: host, scheme: scheme} = URI.parse(url)
 
     if scheme do
-      scheme <> "://" <> host
+      [scheme, "://", host]
     end
   end