archlinux / contrib

Arch contrib scripts
GNU General Public License v2.0
63 stars 18 forks source link

Add support for requests that return a 301 response code. #39

Closed denisse-dev closed 3 years ago

denisse-dev commented 3 years ago
  1. Why is this change neccesary? The pkgsearch script can't handle a request that returns a 301 because curl is not redoing requests.

  2. How does it address the issue? By adding a flag so curl redos request on the new place.

  3. What side effects does this change have? Closes #38


Reviewed by Santiago Torres-Arias santiago@archlinux.org

eli-schwartz commented 3 years ago

I think this is the wrong solution. The redirects are only there because the entire https://www.archlinux.org subdomain is getting 301 redirected to https://archlinux.org