akkoma/test/plugs
rinpatch 455a402c8a HTTP Security plug: rewrite &csp_string/0
- Directives are now separated with ";" instead of " ;",
according to https://www.w3.org/TR/CSP2/#policy-parsing
the space is optional
- Use an IO list, which at the end gets converted to a binary as
opposed to ++ing a bunch of arrays with binaries together and joining
them to a string. I doubt it gives any significant real world advantage,
but the code is cleaner and now I can sleep at night.
- The static part of csp is pre-joined to a single binary at compile time.
Same reasoning as the last point.
2020-05-27 21:31:47 +03:00
..
admin_secret_authentication_plug_test.exs
authentication_plug_test.exs
basic_auth_decoder_plug_test.exs
cache_control_test.exs
cache_test.exs
ensure_authenticated_plug_test.exs
ensure_public_or_authenticated_plug_test.exs
ensure_user_key_plug_test.exs
http_security_plug_test.exs HTTP Security plug: rewrite &csp_string/0 2020-05-27 21:31:47 +03:00
http_signature_plug_test.exs
idempotency_plug_test.exs
instance_static_test.exs
legacy_authentication_plug_test.exs
mapped_identity_to_signature_plug_test.exs
oauth_plug_test.exs
oauth_scopes_plug_test.exs
rate_limiter_test.exs
remote_ip_test.exs
session_authentication_plug_test.exs
set_format_plug_test.exs
set_locale_plug_test.exs
set_user_session_id_plug_test.exs
uploaded_media_plug_test.exs
user_enabled_plug_test.exs
user_fetcher_plug_test.exs
user_is_admin_plug_test.exs