[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] Remove extraneous / at end of URL



packages.d.o currently produces URLs with two consecutive / characters
in it.

Since the apache configuration for ftp-master.metadata.d.o decides upon
the content-type by a URL LocationMatch configuration item, the extra /
produces a URL which does not match the regex; as a result, the file
gets served without a Content-Type header.

RFC2616 specifies that if no charset is specified, the default is
ISO-8859-1, which in the case of Debian changeslogs is wrong; they're
specified as UTF-8.
---
 templates/config.tmpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/config.tmpl b/templates/config.tmpl
index 3f64edf..3f4e39f 100644
--- a/templates/config.tmpl
+++ b/templates/config.tmpl
@@ -19,7 +19,7 @@
    security_mirror = 'security.debian.org'
    security_mirror_url = security_mirror _ '/debian-security'
    security_suite_suffix = '/updates'
-   changelogs_url = 'http://ftp-master.metadata.debian.org/changelogs/'
+   changelogs_url = 'http://ftp-master.metadata.debian.org/changelogs'
    policy_url = 'https://www.debian.org/doc/debian-policy/'
    cn_help_url = project_homepage _ 'intro/cn'
    patch_tracking_url = 'http://sources.debian.net/patches/summary'
-- 
2.9.3


Reply to: