diff --git a/lib/service/http_signatures/http_signatures.ex b/lib/service/http_signatures/http_signatures.ex index 737b6e584..efb688bdf 100644 --- a/lib/service/http_signatures/http_signatures.ex +++ b/lib/service/http_signatures/http_signatures.ex @@ -73,7 +73,7 @@ defmodule Mobilizon.Service.HTTPSignatures do def validate_conn(conn, public_key) do headers = Enum.into(conn.req_headers, %{}) - [host_without_port, _] = String.split(headers["host"], ":") + host_without_port = String.split(headers["host"], ":") |> hd headers = Map.put(headers, "host", host_without_port) signature = split_signature(headers["signature"]) validate(headers, signature, public_key)