Merge pull request #85 from alecmuffett/20201207-kludge-disable-sri

Build kludge_disable_sri for testing
pull/87/head
Alec Muffett 2020-12-08 00:11:51 +00:00 zatwierdzone przez GitHub
commit 5ba4190a24
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -593,6 +593,7 @@ my @set_blank = qw(
host_whitelist_re
inject_origin
inject_referer
kludge_disable_sri
log_separate
nginx_modules_dirs
no_cache_content_type

Wyświetl plik

@ -55,6 +55,7 @@ my %known =
'INJECT_ORIGIN' => 1,
'INJECT_REFERER' => 1,
'IS_SOFTMAP' => 1,
'KLUDGE_DISABLE_SRI' => 1,
'LEFT_TLD_RE' => 1,
'LOG_DIR' => 1, # where logs for the current project live
'LOG_SEPARATE' => 1,

Wyświetl plik

@ -221,6 +221,17 @@ http {
# no preserve subs (restore-phase)
%%ENDIF
%%IF %KLUDGE_DISABLE_SRI%
# disabling sri with a kludge
subs_filter
"i(ntegrity=\"?sha(?:256|384|512)-)"
"_$1"
gir
;
%%ELSE
# not disabling sri with a kludge
%%ENDIF
# o2d_re_helper -> if cannot remap, return input. NB: old versions
# of lua-plugin cannot cope with code like o2d_mappings[o[1]]
# because of `long bracket syntax`; the `[o[` freaks it out.