Update to use new backend, package downloader will follow redirects

This commit is contained in:
2025-04-26 07:18:36 -05:00
parent c344e6a522
commit cfae4ec3a5
2 changed files with 4 additions and 3 deletions

View File

@@ -118,7 +118,8 @@ class W3DHub
headers: headers,
body: "data=#{JSON.dump({ category: package.category, subcategory: package.subcategory, name: package.name, version: package.version })}",
chunk_size: 50_000,
response_block: streamer
response_block: streamer,
middlewares: Excon.defaults[:middlewares] + [Excon::Middleware::RedirectFollower]
)
response.status == 200 || response.status == 206