transmission: remove obsolete apache redirects

Tests:
- Install Transmission, apply the patch and confirm that the 409 conflict error,
  that the redirects were originally meant for, is not reproducible anymore.

Fixes: #2502

Signed-off-by: Benedek Nagy <contact@nbenedek.me>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Benedek Nagy 2025-12-12 00:01:21 +01:00 committed by Sunil Mohan Adapa
parent 5407f9c89d
commit 959d1e2554
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 2 additions and 13 deletions

View File

@ -58,7 +58,7 @@ class TransmissionApp(app_module.App):
app_id = 'transmission'
_version = 7
_version = 8
DAEMON = 'transmission-daemon'
@ -110,7 +110,7 @@ class TransmissionApp(app_module.App):
webserver = Webserver('webserver-transmission', 'transmission-plinth',
urls=['https://{host}/transmission'],
last_updated_version=6)
last_updated_version=8)
self.add(webserver)
daemon = Daemon(

View File

@ -29,17 +29,6 @@
## redirect URLs, set cookies, set absolute URLs (if any)
## properly.
RequestHeader set X-Forwarded-Proto 'https' env=HTTPS
# Make redirects to avoid 409 Conflict errors. See: #2219. Upstream issue:
# https://github.com/transmission/transmission/pull/857 . Drop this
# workaround with Transmission >= 4.0.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/transmission/$
RewriteRule .* /transmission/web/ [R=302,L]
RewriteCond %{REQUEST_URI} ^/transmission/web$
RewriteRule .* /transmission/web/ [R=302,L]
</IfModule>
</Location>
# LDAP only authentication for Transmission remote UIs.