pages-server/server
Daniel Erat 9ffdc9d4f9 Refactor redirect code and add tests (#304)
Move repetitive code from Options.matchRedirects into a new
Redirect.rewriteURL method and add a new test file.

No functional changes are intended; this is in preparation
for a later change to address #269.

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/304
Reviewed-by: crapStone <codeberg@crapstone.dev>
Co-authored-by: Daniel Erat <dan@erat.org>
Co-committed-by: Daniel Erat <dan@erat.org>
2024-04-18 21:03:16 +00:00
..
acme Add option to disable DNS ACME provider (#290) 2024-04-18 17:05:20 +00:00
cache Add config file and rework cli parsing and passing of config values (#263) 2024-02-15 16:08:29 +00:00
certificates Add option to disable DNS ACME provider (#290) 2024-04-18 17:05:20 +00:00
context Security Fix: clean paths correctly to avoid circumvention of BlacklistedPaths 2023-08-27 10:13:15 +02:00
database Add option to disable DNS ACME provider (#290) 2024-04-18 17:05:20 +00:00
dns Add config file and rework cli parsing and passing of config values (#263) 2024-02-15 16:08:29 +00:00
gitea Add option to disable DNS ACME provider (#290) 2024-04-18 17:05:20 +00:00
handler FIX blank internal pages (#164) (#292) 2024-02-26 22:21:42 +00:00
upstream Refactor redirect code and add tests (#304) 2024-04-18 21:03:16 +00:00
utils Security Fix: clean paths correctly to avoid circumvention of BlacklistedPaths 2023-08-27 10:13:15 +02:00
version Release via CI (#94) 2022-06-14 20:35:11 +02:00
startup.go Add option to disable DNS ACME provider (#290) 2024-04-18 17:05:20 +00:00