GTS: cherry-picks and collection usage #186

Merged
floatingghost merged 8 commits from gts-cherry-picks into develop 2022-08-27 18:05:48 +00:00
Showing only changes of commit d991a3eee0 - Show all commits

View file

@ -64,7 +64,7 @@ defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do
if has_signature_header?(conn) do if has_signature_header?(conn) do
# set (request-target) header to the appropriate value # set (request-target) header to the appropriate value
# we also replace the digest header with the one we computed # we also replace the digest header with the one we computed
possible_paths = route_aliases(conn) ++ [conn.request_path] possible_paths = route_aliases(conn) ++ [conn.request_path, conn.request_path <> "?#{conn.query_string}"]
assign_valid_signature_on_route_aliases(conn, possible_paths) assign_valid_signature_on_route_aliases(conn, possible_paths)
else else
Logger.debug("No signature header!") Logger.debug("No signature header!")