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

Bug#965116: buster-pu: speedtest-cli 2.0.2-1+deb10u1



package: release.debian.org
thanks

Dear release team, below is a debdiff to fix bug #940165 for
speedtest-cli in buster:

"""
diff -Nru speedtest-cli-2.0.2/debian/changelog
speedtest-cli-2.0.2/debian/changelog
--- speedtest-cli-2.0.2/debian/changelog	2018-06-15 13:52:44.000000000 +0200
+++ speedtest-cli-2.0.2/debian/changelog	2020-07-14 23:52:02.000000000 +0200
@@ -1,3 +1,9 @@
+speedtest-cli (2.0.2-1+deb10u1) buster; urgency=medium
+
+  * Pass correct headers to fix upload speed test (Closes: #940165)
+
+ -- Jonathan Carter <jcc@debian.org>  Tue, 14 Jul 2020 23:52:02 +0200
+
 speedtest-cli (2.0.2-1) unstable; urgency=medium

   [ Ondřej Nový ]
diff -Nru speedtest-cli-2.0.2/debian/patches/fix-upload-speed
speedtest-cli-2.0.2/debian/patches/fix-upload-speed
--- speedtest-cli-2.0.2/debian/patches/fix-upload-speed	1970-01-01
02:00:00.000000000 +0200
+++ speedtest-cli-2.0.2/debian/patches/fix-upload-speed	2020-07-14
23:52:02.000000000 +0200
@@ -0,0 +1,21 @@
+Description: Fix upload speed
+ Pass correct headers to fix upload speed test (Closes: #940165)
+Author: Jonathan Carter <jcc@debian.org>
+Bug-Debian: https://bugs.debian.org/940165
+
+--- speedtest-cli-2.0.2.orig/speedtest.py
++++ speedtest-cli-2.0.2/speedtest.py
+@@ -1525,9 +1525,12 @@ class Speedtest(object):
+             )
+             if pre_allocate:
+                 data.pre_allocate()
++
++            headers = {'Content-length': size}
+             requests.append(
+                 (
+-                    build_request(self.best['url'], data,
secure=self._secure),
++                    build_request(self.best['url'], data,
secure=self._secure,
++                                  headers=headers),
+                     size
+                 )
+             )
diff -Nru speedtest-cli-2.0.2/debian/patches/series
speedtest-cli-2.0.2/debian/patches/series
--- speedtest-cli-2.0.2/debian/patches/series	1970-01-01
02:00:00.000000000 +0200
+++ speedtest-cli-2.0.2/debian/patches/series	2020-07-14
23:52:02.000000000 +0200
@@ -0,0 +1 @@
+fix-upload-speed
"""

This is currently in p-u-new.

thanks,

-Jonathan

-- 
  ⢀⣴⠾⠻⢶⣦⠀  Jonathan Carter (highvoltage) <jcc>
  ⣾⠁⢠⠒⠀⣿⡁  https://wiki.debian.org/highvoltage
  ⢿⡄⠘⠷⠚⠋   https://debian.org | https://jonathancarter.org
  ⠈⠳⣄⠀⠀⠀⠀  Debian, the universal operating system.


Reply to: