Skip to content

Commit

Permalink
feat: allow query param through on malware report (#166)
Browse files Browse the repository at this point in the history
Refs: pypi/inspector#158

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
  • Loading branch information
miketheman authored Mar 12, 2024
1 parent 1beb806 commit 9568346
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terraform/warehouse/vcl/main.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ sub vcl_recv {
# * /account/webauthn-authenticate/
# * /accounts/search/
# * /pypi
if (req.url.path !~ "^/(admin/|locale/|manage/|search(/|$)|account/(login|logout|register|reset-password|verify-email|verify-organization-role|two-factor|webauthn-authenticate|recovery-code)/|accounts/search/|pypi)") {
# * /project/<project name>/submit-malware-report/
if (req.url.path !~ "^/(admin/|locale/|manage/|search(/|$)|account/(login|logout|register|reset-password|verify-email|verify-organization-role|two-factor|webauthn-authenticate|recovery-code)/|accounts/search/|pypi|project/[^/]+/submit-malware-report/)") {
set req.url = req.url.path;
}

Expand Down

0 comments on commit 9568346

Please sign in to comment.