#16 Add Accept-Encoding: identity header to curl requests
Merged a month ago by onosek. Opened a month ago by onosek.
onosek/fedpkg-minimal accept_encoding  into  master

file modified
+2 -2
@@ -36,7 +36,7 @@ 

              # Remove parenthesis around tarball name

              filename=${filename#(}

              tarball=${filename%)}

-             curl -L -H Pragma: -o "./$tarball" -R -S --fail --retry 5 --max-time 900 "$baseurl/$pkgname/$tarball/$hashtype/$hash/$tarball"

+             curl -L -H Pragma: -H "Accept-Encoding: identity" -o "./$tarball" -R -S --fail --retry 5 --max-time 900 "$baseurl/$pkgname/$tarball/$hashtype/$hash/$tarball"

          done < sources

          "${hashtype}sum" -c sources

      else
@@ -45,7 +45,7 @@ 

              if [ -z "$md5sum" ] || [ -z "$tarball" ]; then

                  continue

              fi

-             curl -L -H Pragma: -o "./$tarball" -R -S --fail --retry 5 --max-time 900 "$baseurl/$pkgname/$tarball/$md5sum/$tarball"

+             curl -L -H Pragma: -H "Accept-Encoding: identity" -o "./$tarball" -R -S --fail --retry 5 --max-time 900 "$baseurl/$pkgname/$tarball/$md5sum/$tarball"

          done < sources

          md5sum -c sources

      fi

Signed-off-by: Ondřej Nosek onosek@redhat.com

@decathorpe FYI. I applied your patch from https://src.fedoraproject.org/rpms/fedpkg-minimal/pull-request/2#
(I kept your name as an Author in the commit)

I will re-release it for all supported releases.

Pull-Request has been merged by onosek

a month ago
Metadata