Bugfix: construct redirect URLs using net/url
commitdc71a1d1f95b561de28b5434e0c065ce8157fd79
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 22 Feb 2018 08:31:50 +0000 (22 09:31 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 22 Feb 2018 08:31:50 +0000 (22 09:31 +0100)
treed204888d3d3e9e1494395f3580d51f7a6316e040
parent78bb40ce3b3ec791d44be18d862260e23c99bf3c
Bugfix: construct redirect URLs using net/url

Previously, filenames which contained characters that need
URL-encoding (e.g. scilab/6.0.0-1/modules/elementary_functions/macros/%hm_gsort.sci)
resulted in a URL which resulted in a Bad Request on sources.d.o.

Thanks Jonas Smedegaard for the report.
cmd/dcs-web/show/show.go