This is an automated email from the git hooks/post-receive script. jamessan pushed a commit to branch master in repository devscripts.
commit 2ed1d7e14fca8a16d176b2765e430fd2166dfcb5 Author: James McCoy <[email protected]> Date: Thu Mar 12 22:01:49 2015 -0400 uscan: Alwasy remove the Referer header for Sourceforge Closes: #778860 Signed-off-by: James McCoy <[email protected]> --- debian/changelog | 2 ++ scripts/uscan.pl | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 1cb484e..e761175 100644 --- a/debian/changelog +++ b/debian/changelog @@ -34,6 +34,8 @@ devscripts (2.15.1+exp1) UNRELEASED; urgency=medium * who-permits-upload: Update URL to use https. * Replace use of Parse::DebControl with Dpkg::Control to work around #780138 and remove a dependency. + * uscan: Always remove the Referer header for Sourceforge, not just when + going via the redirector. (Closes: #778860) [ Johannes Schauer ] * chdist: Also set Apt::Architectures to prevent foreign architectures from diff --git a/scripts/uscan.pl b/scripts/uscan.pl index bd1a851..805ac69 100755 --- a/scripts/uscan.pl +++ b/scripts/uscan.pl @@ -431,15 +431,14 @@ package main; my $user_agent = LWP::UserAgent::UscanCatchRedirections->new(env_proxy => 1); $user_agent->timeout($timeout); $user_agent->agent($user_agent_string); -# Strip Referer header for the sf.net redirector to avoid SF sending back a -# 200 OK with a <meta refresh=...> redirect +# Strip Referer header for Sourceforge to avoid SF sending back a 200 OK with a +# <meta refresh=...> redirect $user_agent->add_handler( 'request_prepare' => sub { my ($request, $ua, $h) = @_; $request->remove_header('Referer'); }, - m_hostname => 'qa.debian.org', - m_path_prefix => '/watch/sf.php', + m_hostname => 'sourceforge.net', ); if (defined $opt_watchfile) { -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git _______________________________________________ devscripts-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel
