codeberg-pages-server/server/upstream
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
..
domains.go
header.go
helper.go
redirects_test.go Refactor redirect code and add tests (#304) 2024-04-18 21:03:16 +00:00
redirects.go Refactor redirect code and add tests (#304) 2024-04-18 21:03:16 +00:00
upstream.go