[devscripts] 01/01: uscan: decode HTTP responses

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Dec 23 23:28:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository devscripts.

commit a2f0d33fad955c46aa9c0fa24d135580f24a26f2
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Dec 23 21:26:45 2017 -0200

    uscan: decode HTTP responses
---
 debian/changelog | 5 +++++
 scripts/uscan.pl | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7721f39..9b14db9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -27,6 +27,11 @@ devscripts (2.17.12) UNRELEASED; urgency=medium
   * grep-excuses:
     + Show when dependencies are blocking the migration.  (Closes: #881906)
 
+  [ Antonio Terceiro ]
+  * uscan:
+    + decode HTTP responses, to support pages that are served encoded with
+      gzip (`Content-Encoding: gzip`)
+
  -- Mattia Rizzolo <mattia at debian.org>  Mon, 30 Oct 2017 07:48:10 +0100
 
 devscripts (2.17.11) unstable; urgency=medium
diff --git a/scripts/uscan.pl b/scripts/uscan.pl
index f1b052d..dd6b24c 100755
--- a/scripts/uscan.pl
+++ b/scripts/uscan.pl
@@ -2944,7 +2944,7 @@ sub process_watchline ($$$$$$)
 	    }
 	}
 
-	my $content = $response->content;
+	my $content = $response->decoded_content;
 	uscan_debug "received content:\n$content\n[End of received content] by HTTP\n";
 
 	# pagenmangle: should not abuse this slow operation

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list