aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-08-08 03:16:20 -0400
committerB. Watson <urchlay@slackware.uk>2024-08-08 03:16:20 -0400
commite2df3ea1f93e6b17023fe1e774368f38a5f749b3 (patch)
tree7443e722e29bdf3761088c9038780e425cc6937c
parent17847a4e00b6637626bd13f3adea30916a675461 (diff)
downloadsbo-maintainer-tools-e2df3ea1f93e6b17023fe1e774368f38a5f749b3.tar.gz
sbodl: disable content-disposition for sourceforge.net
-rwxr-xr-xsbodl4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbodl b/sbodl
index dc2944a..1623463 100755
--- a/sbodl
+++ b/sbodl
@@ -242,7 +242,9 @@ for dl in $DL; do
EXTRAWGETARGS="$CONTDISP"
case "$dl" in
- *sourceforge.net/*|*.sf.net/*) EXTRAWGETARGS="$EXTRAWGETARGS --user-agent wget" ;;
+ # sourceforge can't use content-disposition, because some of its
+ # mirrors add '?viasf=1' to the filename in the header.
+ *sourceforge.net/*|*.sf.net/*) EXTRAWGETARGS="--user-agent wget" ;;
*) ;;
esac