neiam
/apollos_crib
It's Apollo's Crib
public · Issues · Pulls 1 · Labels · Forks · Compare · Actions failure · Badges · Packages
⭐
Log in to mark this repository.
add follow_redirect for gtfs retrv
b4c7723 · gmorell · 2023-07-28 05:27
Files changed
modified
apps/room_gtfs/lib/room_gtfs/gtfs_worker.ex
+1
−2
@@ -753,14 +753,13 @@ end
| 753 | 753 | @impl true |
| 754 | 754 | def handle_cast(:update_static, state) do |
| 755 | 755 | cfg = Configuration.get_source!(state.id) |
| 756 | − IO.puts("kkk") | |
| 757 | 756 | |
| 758 | 757 | case cfg.enabled do |
| 759 | 758 | true -> |
| 760 | 759 | Logger.info("GTFS::#{state.id} updating static info") |
| 761 | 760 | bcast(state.id, :downloading, 1, 9) |
| 762 | 761 | |
| 763 | − case HTTPoison.get(cfg.config.url) do | |
| 762 | + case HTTPoison.get(cfg.config.url, [], follow_redirect: true) do | |
| 764 | 763 | {:ok, result} -> |
| 765 | 764 | bcast(state.id, :extracting, 2, 9) |
| 766 | 765 |
Parents: c349218